199,114 Archived Topics
Remove Filter ![]() | |
I want to detect when connectivity with SQL Server fails, so i can fire an alert for the user. Does anyone know a bit of code that will help me detect when connectivity with the SQL Server fails (SQL Server goes down, network cable is unplugged etc). I try with: … | |
How to Change Default exe Icon in vb.net Windows Application it is not from project- properties- application- icon. when form is in run mode then its showing visual studio icon on task bar i want to change that icon, and i also want to change icon for setup.exe. pls its … | |
I am new-ish to python and need to write a short program which will take a file with many lines of sets of coordinates alongside a defined variable of a series of letters and out a 3 columned file with columns x, y, and letter. the input file has each … | |
Hi , i am using the following function to verify whether a given tree is balanced or not. its working for some inputs and not working for others 1) 15 2) 15 10 3) 15 10 25 ( the above are balanced ok) 15 10 25 7 12 16 11 … | |
![]() | Hi, I've created a base user control from which I want to inherit to create custom controls. This control will be used for data entry and includes a tablelayoutpanel control and panels. When I inherit from the base control, the derived control will not allow the dragging and dropping of … ![]() |
I am new to vb.net and I'm doing a small project from vb.net.I want to insert values to a sql server database table from a windows form.I have written a vb class called OrderedItem.vb to add a new data row and assign variable values to that table.In the Form, for … | |
Hello guys, i been searching this for a month still cannot find anything. is there any way to copy mysql table to ms access? Best Regards | |
Hi All! I am VERY NEW to Python and I am trying to make a program that can generate random words from a list of letters given to it. The command line can be: [I]program.py abcdefghi[/I] and then as a result the program will print all possible 9 letter words. … | |
Good evening, all! My current assignment is a small Appointment Book written in Java. It should scroll through the times of the day, and display the appointment (if any) for that particular time of day. I can scroll through the different times with no issue, but I can't seem to … | |
Hello all. I was looking for a way to make some grafical stats of recieved files on my honeypot. After thinking on the way to do so, i understood that the easiest way would be parsing the filename with regullar expression or using dir() command. But for parsing the data … | |
hi, I am new to c# and SQL server. I am currently using SQL management tool to create tables and have added table to data gridview visually while I can enter the data the table as well as the data base is updated but I cannot delete rows from the … | |
Hi All, I have a PHP Code That is Search Input Value from Database and Print it. but i want to Print Serial Number (1,2,3......) before my Every Query. For Ex: 1. Name F Name Add 2. Name F Name Add 3. Name F Name Add 4. Name F Name … | |
I was trying to run a spring program with different style. I am new to this framework. I tried to load configuration file with types of loader. like [CODE] (1) BeanFactory factory = new XmlBeanFactory(new FileSystemResource("spring.xml")); (2) ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml"); (3) ApplicationContext context = new FileSystemXmlApplicationContext("/spring.xml"); [/CODE] But … | |
Hello. I'm quite a newbie to cURL and php. I have been trying hard to login at youtube using cURL but haven't had any success. All i get in return when i run the following code is the youtube login page, with my username(which i used in the code) written … | |
how can I compile PublicKeyToken into .NET dll? I am new to VS2008 and C#, I have the need to set the PublicKeyToken, How can I do this? TIA | |
Hey! Im new to this C++ stuff and the first major problem I run into is a two dimensional array. I have to declare the array and store data values from ANOTHER data file. I have some of the code written down. Please help and tell me what I'm doing … | |
Hey all - I did a bit of searching and read up on the "..not a valid MySQL result resource" error.. but I can't seem to fit any of the solutions to my code. Can I please get some help? Here is the error: Warning: mysql_num_rows(): supplied argument is not … | |
Hi, I was honing my linux programming skill when this nuisance started bugging me. I wanted to create an empty file creator program. While creating a large file it must print # for progress bar. But the output shows it happening reverse way. ie. first it copies file and shows … | |
Hi: I am trying to create a loop for a code. My loop is supposed to find all the combinations using the numbers 1 and 0 depending on the length of my string. For example if I set up my string to be 3 then the program should give me: … | |
Hi, I am developing a database for Lease management system, I have a field expire date of Lease agreement in my database. Now if expiry date is 07-December-2009 I need alert about it 3 months ago means today. So how I can write SQL Query for this purpose. thanks in … | |
Hi, I am developing a software. I need to show only those subscriber, their subscription will expire after 90 days and less then 90 days. and when it show these subscriber it saves information in another table automatically. For Example: if Subscriber have expiry date 15-decemeber-2009, it shows alerts that … | |
Getting error for the simple code Please help me out. Thank you[code]I have a textbox and one table. Once the user enters data in the textbox & click save button, the data gets saved to database. I've written following code but I'm getting following error. Please help me out. Thank … | |
I'm new to the web development world. Is there a script , software, tool that I can post my Form Data to and it can then control and manage all the places that data needs to go to. For example: User fills out a Form on my website, I'd like … | |
this progran will simulate a process queue, giving time slices based on the priority. The process entries will be in a file, one per line.the data is the start time, priority level, total time to run and process name. when I run the program I got few problem 1. how … | |
On visual studio watch1 "NumbersLcl(xc, yc)" is 6, "NumbersLcl(x1, y1)" is 7. Both "y1" and "yc" are 0. All variables are byte and NumbersLcl is (2,2) as byte. How can the following statement evaluate as true? If y1 = yc And NumbersLcl(xc, yc) = NumbersLcl(x1, y1) Then isfound = False | |
Hi, I'm writing my first program for my second year comsci class and I'm still learning java along the way. Anyways, the signature for one of my functions has to be: "public static BigInteger fNumberRoutes( int n, int m )" So I assume it's a function that returns a BigInteger. … | |
Hi, I am trying to write a program that finds the minimun and maximum number in an input set of numbers. I am using a loop to update the set as the program reads the cin. Example code: [CODE]min = max = -1 cout << "Enter termination value that will … | |
I want to write a Code in C which can create copy any given file (txt, bmp, jpg, pdf etc) what i've written so far is: int main(){ FILE *fp; char ch; FILE *fpW; if((fpW = fopen("file2.bmp","w"))==NULL) { printf("Cannot open Destination file.\n"); exit(1); } if((fp = fopen("file.bmp","r"))==NULL) { printf("Cannot open … | |
Hi a kind member (ardav) helped me with some php scripting to get a drop list to be populated using an exploded function in php. I need to also add a first option to the list that would say "Choose Color" as the client wants the light and dark colors … | |
hi i'm trying to add a feature to an application where users of my application (installed on different computers) can share access db files when updates are made by one user but dont know where to start. Is there a tutorial i could look at or sample source code? | |
Hi all, A question for you. I have these types of files at my work (.sj extension) that I need to work with and I'm wondering if there is a way to read from the file like a text file (the .sj files can be opened / read by notepad). … | |
I've created a few functions to be used with pygame which are based on anti-aliased curves. At the moment and likely forever, it has two useful functions: aacircle(s,x,y,r,colour): Draws an anti-aliased circle on the surface s at the starting point x and y with the radius r. The circle will … | |
just a simple web spider/crawler i'm trying to create to populate my search engine. [CODE]<form action="crawl.php" method="get"> <center> <span class="style1">Crawl Website</span> <input name="search" type="text" value='' size="25" /> <input type="submit" name="submit" value="Go!"> </center> </form>[/CODE] i type the name of a website,[b] i extract the <title>, <header> from the website.[/b] then i … | |
Hello world, I have a DB in mysql, and want to create a code that will select all this DB data ( there are 10 records) and send it via email (created send email in php). Anyone have a such example please ?Could you help me =? Thanks in advance. | |
ok now what i want out of this program is to be able to ask the user how large the height and width of the drawing should be. (i seem to have this down ok or at least i think i do) i also want to be able to have … | |
Hello all: I wanted to remove the padding on my datagridview cell and used some code I found here on this forum.. this.dataGridView1.CellPainting += new DataGridViewCellPaintingEventHandler(dataGridView1_CellPainting); void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)//remove padding { // ignore the column header and row header cells if (e.RowIndex != -1 && e.ColumnIndex != -1) … | |
I have a project were the user enters an arrival date and a departure date and clicks the Calculate button or presses the enter key and the app. calculates, formats, and displays the number of nights and the total price. The price per night should be $115. The application should … | |
1) What is versioning? 2) What is DLL hell? 3) Destructor - It is called automatically when object is destroyed. Rite or wrong? 4) Finalize or destructor are same?? They have same definitions. 5) Interfaces vs. Abstract Classes? 6) BCL vs FCL? | |
Trying to make a form's background transparent, without it losing its ability to receive clicks. this.Opacity makes the whole form transparent (not just the background [CODE] BackColor = Color.Red; TransparencyKey = BackColor; [/CODE] makes the background of the form transparent and click through-able. I want the form to be transparent … | |
This code was originally for an assignment. I met the requirements of the assignment but wish to expand the code to further check for valid input. I am quite new at this but trying to learn... Anyway, the problem is this. I can check if the float is non-negative with … | |
Hi all, How about this? In this example, what is the correct way to initialise Secret mission? [CODE]class Secret { private: int data; public: Secret(int _data) { data = _data; } }; class Mission { public: Secret mission; Mission(); { } };[/CODE] the only way i know of is using … | |
Hi I have a few javascript calls that hide/show divs over a flash movie and even a css/jquery drop down nav that overlaps over the flash movie. IE6, IE7, IE8, FF2 pc, FF3 pc, and even FF mac are fine, however with Safari the cursor remains an arrow even when … | |
I am receiving a System.IO.FileNotFoundException when attempting to access a path like "C:\Path\~somePath\Path\file.ext" it reports the error: [code]System.IO.FileNotFoundException: Could not find file 'C:\Path\~s'. File name: 'C:\Path\~s' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, … | |
I have a program that allows a user to create a number of Textboxes that they specify. I would like to know how to get the information from each of those Textboxes in a different Sub. Here is code on creating them: [CODE] Dim txtLetter(x) As TextBox txtLetter(x) = New … | |
New to javascript please help me create a link after we click on submit button What is happening is when we click on submit button, it directly does the action on query to google But instead need this to create a link I mean when we hit search the javascript … | |
I'm using netbeans 6.7.1 and i'm trying to connect to the sql server 2000 database that i have created and i get this error message, SQL Exception: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host pc05801, port 1433 has failed. Error: "connect timed out. Verify the connection properties, check that an … | |
i m doin something like: editorPane.setPage(urlString); i m using this function for displaying a webpage. now i used hyperlinklistener so when i click on link it goes to pointed url.but i m not able to use other component of the page like Buttons,checkboxes,Submitbutton.Can you explain how to do it? | |
please help me to convert php multi dimension array to JavaScript multi dimension array[code]Array ( [nonveg] => Array ( [0] => mutton [1] => Chicken ) [veg] => Array ( [2] => sambar [3] => rasam ) ) [/code]this is my array value i pass it to JavaScript function i … | |
[CODE]ok ok i got it now right i copy it to vector and sort it..... here is the code #include <iostream> #include <fstream> #include <algorithm> #include <string> #include <map> #include <vector> using namespace std; typedef map<string,int> word_count_list; struct val_lessthan : binary_function < pair<string,int>, pair<string,int>, bool > { bool operator() (const … | |
How do I find the Process ID of a program? I need to know it to attach a process for WinDbg. And, yes, I tried googling this question but everything seemed to be for a Linux system. |
The End.