Type: Posts; User: foamy
Search took 0.04 seconds.
March 15th, 2012, 07:15 AM
That was hardly a useful reply, as the OP will obviously not be able to answer those questions.
I would suggest looking at the SqlDataReader class.
This sample should get you started (modified...
March 15th, 2012, 07:09 AM
Well, the generic EventArgs does not contain any such properties.
I think you should handle the MouseClick event rather than the Click event..
March 15th, 2012, 07:07 AM
Sounds like a pretty typical async problem.
Looking into a BackgroundWorker would probably work well for you. Otherwise, you could achieve this manually using threading.
Here's a small sample to...
March 15th, 2012, 06:44 AM
Posting a sample of your code would help. I'm hard pressed to understand what you mean by "Extracting the values" - if you can see them when debugging, they should be available just like any other...
March 15th, 2012, 06:39 AM
The obvious way would be
List<string> uniqueline = new List<string>();
foreach(object o in ProcessLogLines[loglineid])
December 22nd, 2011, 03:44 AM
I did some debugging on your code. It seems if the objects in list1 are the same instances as the ones in list2, the code works. However, if the objects are different instances with the same values,...
December 16th, 2011, 06:11 AM
Firstly, you will need to set the TextBox's Multiline property to true.
Secondly, do something like this:
while (a < b)
textblock1.text += "hello world" + a + Environment.NewLine;
December 16th, 2011, 04:51 AM
I would try logging the time when your app connects to the database and compare the time of the errors with the time of the connections from the app.
December 15th, 2011, 07:19 AM
Holy cow o.O
Nice response there, TheGreatCthulhu :)
December 15th, 2011, 07:16 AM
Is there some specific reason why you want your application hidden in this way? Most users would not expect this behavior.
December 12th, 2011, 06:02 AM
+1 on that. As first posts go, that was horrible
December 9th, 2011, 02:25 AM
Let me make sure I understand what you are trying to do.
1. Perform some action in a loop every x seconds
2. At 10:00 perform an additional action once
Is this correct? If so, I would try...
December 8th, 2011, 02:10 AM
Or, do this:
textBox3.Text += "Connecting..." + n;
//one of these should be enough.
December 8th, 2011, 02:07 AM
and tags when posting code.
On the face of it, I'd say this is your problem area:
foreach (DataRow DR in mydataTable.Rows)
December 6th, 2011, 02:14 AM
Making your code return what you want it, is not our job. Since we've helped you solve the error, you should be able to have your method do what you want it to.
If not, please explain what...
December 5th, 2011, 03:32 AM
Indeed. The 'Fee' method returns nothing, so the return type need to be 'void'. If you prefer to have it return something, try this (assuming the wanted return value is the same as the one displayed...
December 5th, 2011, 01:44 AM
1. Welcome to the forum
2. Please use
and tags when posting code
3. Change this
public decimal Fee(int InHour, int OutHour, int InMin, int OutMin)
November 29th, 2011, 02:42 AM
try googling a little.
Questions about opening forms have been asked before ... A lot
November 21st, 2011, 02:24 AM
Seems like it would be dependent on the operating system - which one are you using?
November 21st, 2011, 02:17 AM
Indeed. If the controls are on whatever 'this' refers to, they will be removed when you call the Clear() method. You should, in that case, add them again
November 15th, 2011, 05:49 AM
There shouldn't be any problem with assigning 'null' to a string variable. The below code is, if I'm not mistaken, perfectly valid:
string y = "something";
string x = null;
y = x;
November 11th, 2011, 01:58 AM
Show us the code you have, and maybe we'll be able to fill in the blanks
November 10th, 2011, 01:57 AM
You should use a ListBox, ListView or DataGridview for this kind of thing, the textbox in itself isn't geared towards this kind of formatting.
November 1st, 2011, 04:42 AM
There has been a countless number of threads on this subject. If you're working in Windows Forms, the easiest way would be to simply add the desired objects to your form's constructor
October 31st, 2011, 03:51 AM
If the text in 'textBox2' is not a valid double, those methods are supposed to throw exceptions.
If you want to judge the input without handling exceptions, try using the Double.TryParse method
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.