458 Posted Topics
Re: I suggest you start by writing pseudo code. Then *...create a class named person.* | |
Re: The following may be of interest: [Packet loss](http://en.wikipedia.org/wiki/Packet_loss) Here are a few ideas. **Possible issue 1:** Packet loss due to network flooding. This could be caused by a bad network card, a virus, etc. **Tests:** Unhook all computers except for one, and test for packet loss. Repeat for the other … | |
Re: Try the following: Boot into Safe Mode, then * Click "Start" * Select "Control Panel" * For View by, select "Small Icons" (or Large Icons) * * Click "System" * Click "Advanced System Settings" * Do you want to allow the following program to make changes...? Click, "Yes" * Click … | |
Re: In "frmBirthdayCake_Load", the connection is not open. Where is `con.Open`? | |
![]() | Re: Please provide the table structure and some sample data from each table/database. ![]() |
Re: '@' means the string following is literal. Either remove the '@' or remove one of the ''. | |
Re: Did you receive that error on compiling? Make sure you have the following using statement: * using System.Security.Cryptography; Note: You may have to add "System.Security" as a reference. [System.Security.Cryptography Namespace](http://msdn.microsoft.com/en-us/library/system.security.cryptography(v=vs.110).aspx#feedback) | |
Re: C# seems to be more popular and you will find it easier to find posts on C#. Additionally, the structure of C# is similiar to Java, making it easier to learn Java if you decided you wanted to learn Java one day. | |
Re: It sounds like the file you created isn't useful to you. Why don't you post the original file (or file format) and then explain what you are trying to accomplish. | |
Re: jRadioButton1, jRadioButton2, jRadioButton3 don't exist in "groupButton". They are only in the constructor. | |
Re: Also `n % 2` is modulus division. Here, it only = 0 for mulitiples of 2. Ex: 2, 4, 6, 8, 10, etc... Modulus division is the remainder part of dividing two numbers. ex: 5 / 2 = 2 remainder 1 so, 5 % 2 = 1 | |
Re: Please provide the budget for your project so someone may contact you regarding your project. If you want help with YOUR code, provide your code and where you are having difficulty. You might want to check out Google--it'll save you money. Try searching for "HTTPWebRequest" and "HTTPWebResponse". | |
Re: If you want to see the message comment out line #27 `exit(1);` In VC++ you can do the following to see where your program is running: Add include statement: #include<direct.h> Then add the following code to "Payroll::Payroll" char* buffer; string curDir; // Get the current working directory: if( (buffer = … | |
Re: I agree with tinstaafl, re-write your code to get rid of the "GoTo" statements and use TryParse instead. Also you may consider using "OrElse" instead of "Or". [(OrElse and Or) and (AndAlso and And) - When to use?](http://stackoverflow.com/questions/8409467/orelse-and-or-and-andalso-and-and-when-to-use) **Issue:** *...something is wrong wth CalcMiscCharge missing a return statement...* **Resolution:** It … | |
Re: [This documentation](http://www.silverbaytech.com/files/maxicode/maxi_api.pdf) also provides some information on Maxicode (although it doesn't look like their product supports .NET). | |
Re: Have you considered just creating a third template that has the necessary info on it? Why do you feel you need to automate it? | |
Re: Try adding the following between line 9 and 10: record.MoveFirst Other versions you can try: record.Open SQL, con, adOpenDynamic, adLockOptimistic record.MoveFirst Do While record.EOF = False '... record.MoveNext Loop or record.Open SQL, con, adOpenDynamic, adLockOptimistic record.MoveFirst Do Until record.EOF '... record.MoveNext Loop | |
Re: If the control is in a group box or panel, you need to search there for it. Think of it as searching for a file you stored in a directory "c:\temp". If you only search in "c:\" you won't find it, you need to look in "c:\temp". Likewise, group boxes … | |
Re: Are you required to use InputBox? Not sure why you are using ListBox for those things. 1. Prompt user for French marks (handle invalid entries) 2. Prompt user for German marks (handle invalid entries) 3. Prompt user for Spanish marks (handle invalid entries) 4. Add marks to ListBox 5. Calculate … | |
Re: The attached code is written in C#. This would probably be better placed in the C# forum. | |
Re: It doesn't look like those tables have the appropriate information. You may be able to use check date. However, you probably should have kept track of pay period start date and pay period end date. | |
Re: Question 1: How do you know "dog" is a word? Question 2: If you didn't know if "dog" was a word or not, how would you find out? | |
Re: What if a user wants to de-select a button and select another one? Keep track of the selected button name using a private string variable. If a button hasn't been selected or has been de-selected the value should be String.Empty. If a button is pressed and the variable = String.Empty … | |
Re: What operating system? If Vista or newer (win 7, win 8), check that the user account control settings are the same on both computers. Also, you might want see if a simple program (such as one that only opens a message box) runs on the other computer. MessageBox.Show("Hello World") Additionally, … | |
Re: Check the settings (properties) of the wireless adapter on the computer. Ensure that it is set to use your router is using (a/b/g...etc). | |
Re: If you have VS Ultimate (2010 or newer), looks like you could add a "Modeling Project" to your solution. See the following: [How to: Create UML Modeling Projects and Diagrams](http://msdn.microsoft.com/en-us/library/dd409445.aspx) If this is for a class, you can use MS Visio or MS Word, or just draw it out on … | |
Re: You've commented out the line that defines "@g" `cmd.Parameters.AddWithValue...` (ensure that the data type matches that of the data type in the database). Also, in your insert, use parameterized queries. | |
Re: Move `Console.ReadLine();` inside the loop so that it pauses between loop iterations. ... Console.ReadLine(); } while (true); ... Add some WriteLine statements (for debugging). ... number1 = number.Next(1, 31); number2 = number.Next(1, 31); operators = number.Next(1, 5); // 1 = add, 2 = minus, 3 = multiply, 4 = divide … | |
![]() | Re: Have you thought about using an array? [Arrays](http://www.cplusplus.com/doc/tutorial/arrays/) |
Re: You could probably use a file (one file per player, if more than one player can occupy the same location) Then use getc (or fgetc) and putc (or fputc). See the following: [getc and fgetc](http://crasseux.com/books/ctutorial/getc-and-fgetc.html) Create a file format for yourself. Here is an example: P0*00 0*000 00!00 00*00 In … | |
Re: Add using statement: using System.Net; **Pre-requisites:** * TextBox named: downloadURLTextBox * TextBox named: savePathTextBox * Button named: downloadBtn Declare the following variables inside the class: private string downloadURL = string.Empty; private string path = string.Empty; Create a method that gets and checks user input and appends / pre-pends as necessary: … | |
Re: Check the value "progress". Can also try adding "refresh" after "xProgressBar1.Value = e.ProgressPercentage". If you are using a StatusStrip, call StatusStrip1.Refresh(). | |
Re: You need help or you need someone to do it for you? If you need help, post the code that you have so far. | |
Re: You can try the following: **Option 1:** * Turn computer on. Press "F10" repeatedly (once or twice per second). * If prompted to "Edit Windows boot options...", press the escape key. * If the Windows Boot Manager screen appears ("Choose an operating system to start..."), select the OS you want … | |
Re: This is for C# but can be converted: C# send plain text to default printer (Zebra printer) http://stackoverflow.com/questions/19171628/c-sharp-send-plain-text-to-defult-printer-zebra-printer | |
Re: Assuming "E:\downloads" is a folder, "PathtoSave" should include the filename--not just the folder. ex: WebClient wc = new WebClient(); string localFilename = @"E:\downloads\myfile.txt"; wc.DownloadFile(downloadURL.Text, localFilename); Resource: [Download Files from Web [C#]](http://www.csharp-examples.net/download-files/) [Download file and automatically save it to folder](http://stackoverflow.com/questions/6773866/download-file-and-automatically-save-it-to-folder) [WebClient.DownloadFile Method (String, String)](http://msdn.microsoft.com/en-us/library/ez801hhe(v=vs.110).aspx) | |
Re: What are you trying to accomplish? You need to provide more detail, such as some variable names and data types to make it easier to see what you are trying to accomplish. Obviously, there would be no point to doing the following: public class A { public string firstName = … | |
Re: [class FileWriter](http://docs.oracle.com/javase/7/docs/api/java/io/FileWriter.html#FileWriter(java.io.File,%20boolean)) -FileWriter(File file, boolean append) Change line #21 (above) from: FileWriter fw = new FileWriter(file.getAbsoluteFile()); To: FileWriter fw = new FileWriter(file.getAbsoluteFile(),true); | |
Re: You can't just return to MethodA. MethodA didn't call MethodD--MethodC did. Even with exceptions, if unhandled, they are passed back to the caller. An exception could potentially be passed from D to C to B to A. Also, control needs to be passed back from MethodD to MethodC so clean-up … | |
Re: Test the hard drive to make sure it's not bad. | |
Re: [PDFNet SDK](https://www.pdftron.com/pdfnet/index.html) [PDFTron PDFNet Contact](https://www.pdftron.com/contactus.html) *"PDFTron offers several licensing and pricing options to accommodate various types of application and deployment scenarios in which customers can use PDFTron products. PDFTron's goal is to provide the most flexible and cost-effective licensing that suits specific customer requirements. If you would like to consult … | |
Re: Knowing what controls are on your form would be beneficial. The easiest way is probably to change the text on the control. | |
Re: Two possibilities that I see: **Possibility 1**: recNo.Length is only allowing 1 iteration (as others have stated) Try outputing the value of k: MessageBox.Show("k: " + k); **Possibility 2:** Receiving error because SqlParameter(s) is/are already declared. This should produce an error. However, if one did the following (or some version … | |
Re: Try deleting the following code (lines 15-17): if (LCase(Mid(objFile.Name, InstrRev(objFile.Name,"."))) = ".jpg") then oFile.Write objFolder & objFile.name & vbCrlf end if and replace it with this: if (LCase(objFSO.getextensionname(objFile)) = "jpg") then oFile.Write objFolder & objFile.name & vbCrlf end if **Resource:** [VBScript: how do I determine file extensions?](http://arstechnica.com/civis/viewtopic.php?f=20&t=636532) The following may … | |
Re: It seems possible to automate joining a wireless network using netsh. The following may be useful: [Deploying Wireless LAN settings with a Pre-Shared Key (PSK) from the command line](http://theether.net/kb/100166) [Script to Automate Adding Wireless Profile in Windows](http://mantraaz.wordpress.com/2010/10/18/script-to-add-wireless-profile/) [Wireless Profile Samples](http://msdn.microsoft.com/en-us/library/windows/desktop/aa369853(v=vs.85).aspx) [WLANProfile Element](http://msdn.microsoft.com/en-us/library/windows/desktop/ms707381(v=vs.85).aspx) [WLAN_profile Schema Elements](http://msdn.microsoft.com/en-us/library/windows/desktop/ms706965(v=vs.85).aspx) | |
Re: %5B, %5D, %3D are ASCII values. %5B = '[' (left square bracket) %5D = ']' (right square bracket) %3D = '=' (equals) [ASCII Table](http://www.asciitable.com/) Below is a method of extracting the data: string inputData = @"SearchOrder=2&Start=0&Count=-1&Query=(%5BDoc_Name%5D%3DABC+OR+%5BArea%5D%3DXYZ+OR+%5BSubArea%5D%3DQRS)"; string area = string.Empty; string docName = string.Empty; string subArea = string.Empty; string userParams … | |
Re: Are you running VS as an administrator? Try turning off UAC (under user accounts) before running your program and see if it works. | |
Re: Download and install SQL Server Express 2008. [SQL Server Express 2008 R2 SP2](http://www.microsoft.com/en-us/download/details.aspx?id=30438) [.NET Framework Data Provider for SQL Server connection strings](http://www.connectionstrings.com/sqlconnection/) [Introducing LocalDB, an improved SQL Express](http://blogs.msdn.com/b/sqlexpress/archive/2011/07/12/introducing-localdb-a-better-sql-express.aspx) [Differences Between SQL Server Compact and SQL Server](http://msdn.microsoft.com/en-US/library/bb896140.aspx) [SQL Server Compact...](http://msdn.microsoft.com/en-us/data/ff687142.aspx) [Microsoft SQL Server Compact 4.0](http://www.microsoft.com/en-us/download/details.aspx?id=17876) [Walkthrough: Adding a SQL Server Compact … | |
Re: Ensure that you have saved any data from the hard drive that is important before proceeding. Making a image of the hard drive can also be useful before attempting any os installation repairs. One of the first things that should be done is to verify that the computer can boot. … |
The End.