25 Posted Topics
Re: little.daffodil: You read a line and store it in 'input' [CODE]while ((input = sr.ReadLine()) != null)[/CODE] Then you read another line which overwrites the value stored in 'input'. [CODE]if ((input = sr.ReadLine()) != null)[/CODE] Then you use 'lines' (ie. NOT input) in your modem access code.[CODE]comPort = new System.IO.Ports.SerialPort(lines[0], 9600, … | |
Re: a byte is a single value from 0 to 255. You cannot convert multiple bytes in a single one! | |
Re: What is the point of taking a programming course (which you obviously are) if you are going to rely on the members here to create your code for you? how do you expect to LEARN anything? Do what everyone else does (or should do) before postng todays homework here and … | |
Re: Assuming that the 2nd example is the broken one... 1. Change the host in the first example to localhost and make sure it still works and therefore eliminate hosting differences. 2. Verify your typing - make sure of things like the filename being "Lighthouse" and not "lighthouse" etc. 3. Remove … | |
... to provide Email client reading pane functionality such that it can display an attached image as part of the message body. Is there a single control that will display text with an imbedded image or do I need to create a UserControl? | |
Re: Looks like it could be a packet loss issue. | |
Re: Get your program to dynamically create the script before calling it. | |
Re: If you find you are re-using the same code over and over, might I suggest you save this to a seperate file that gets included in each project rather than building from the same project each time. Have a look into creating your own VS Templates. | |
Re: [b]Console.Write(UPC1.ValidateUPC(temp));[/b] writes the output from the function to the console whereas [b]UPC1.ValidateUPC(temp);[/b] never saves the output for later display. I suspect your Validate rountine is coded using "pass by [i]value[/i]" rather than "pass by [i]reference[/i]" - partly because a routine using [b]ref[/b] wouldn't actually need a [b]return[/b]ed value. | |
Re: If we knew what your were trying to achieve and what you are having problems with, we might be more inclined to help. Also, put your code between [ CODE ] tags | |
Re: Why not just change [code]SELECT SUM(pf5_showplaylists.runningtime) FROM pf5_showplaylists WHERE pf5_showplaylists.showID = " + ShowID[/code] to read [code]SELECT SUM(pf5_showplaylists.runningtime) As mySumResult FROM pf5_showplaylists WHERE pf5_showplaylists.showID = " + ShowID[/code] and then use a DataReader ? The result of the query may be found in the first column of the first row … | |
Re: personally, I'd rather use the Enabled property and leave them visible. | |
Re: Have you tried the INSERT statement directly (ie. on your DB server rather than through your program? Are you SURE the update is working? Just because command.ExecuteNonQuery(); doesn't bomb out, it doesn't mean the SQL operation was successful. You are not checking any returned values in your code. How do … | |
Re: Try using this.comboBox1.SelectedItem.ToString() instead of the SelectedText value which gets cleared when focus leaves the ComboBox (ie. when user clicks a button [url=http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.selectedtext.aspx]Read here[/url]) If your ComboBox style is DropDownList, then just use comboBox1.Text | |
Re: Method calls take the form [CODE]instanceVariable.methodName(argumentList);[/CODE] | |
I've got a ListView which is normally hidden and Enabled=false; I'm using the ItemChecked event Enable/Disable a button on the form (the button is disabled if nothing is checked) If I add the ItemChecked event handler via the Designer in the usual way, it puts the code in the usual … | |
Again, for anyone working with ID3 version 1 or 1.1 tags. This class is used to store the tags associated with a given file. There is a default constructor in case you need to instantiate an 'empty' instance, but in 99% of cases you pass the filename of the audio … | |
For anyone working with ID3 version 1 or 1.1 tags in audio files, this static class may come in handy. It uses indexers to convert between the textual to the numerical representation or from numerical to textual and also accounts for unset and invalid values. Being static, it is always … | |
Re: Watch the typos! tbs.Lenght; should be tbs.Length; | |
Re: I think that is probably what whoever set this particular piece of homework was intending - just incorrect terminology used. | |
Re: You could start by looking [url=http://msdn.microsoft.com/en-us/library/bb955365.aspx]here[/url] | |
Re: Can't help with creating the folder, but to find the applications install path at run-time use [code]Path.GetDirectoryName(Application.ExecutablePath)[/code] | |
OK, I am relatively new to C#, so in order to give myself a 'learning' project, I thought I'd update an application I wrote a couple of years ago. The application uses a ListView control in "Details" mode to display MP3 tag data stored in an Access MDB database file. … | |
Re: AFAIK Auto-Ellipsis only appends ... to the [i]end[/i] of the string. | |
Re: Actually not as easy as it first looks... [code] using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int valueToOuput = 0; int numberOfNumbers; for(numberOfNumbers = 1; numberOfNumbers<20; numberOfNumbers++) { string output = ""; int sum = 0; for (int i = 0; i < numberOfNumbers; … |
The End.