Type: Posts; User: Erendar
Search took 0.03 seconds.
July 18th, 2012, 01:39 AM
Top of the thread -> Thread Tools
July 12th, 2012, 02:09 AM
Read your file with File.ReadAllText(string path) and then you can do FileWriteAllText(string path, string content)
July 11th, 2012, 03:57 AM
Personally i'm using the TextWriter version
if (FileList.myFiles.Count > 0 && Global.bSerialEnable)
foreach (long key in...
July 11th, 2012, 03:46 AM
string s = "981.55";
if (double.TryParse(s, NumberStyles.AllowDecimalPoint,CultureInfo.InvariantCulture,out d))
July 11th, 2012, 03:38 AM
I'm thinking about this for add to avoid multiplying again
static double Add(double a,double b)
double r = a + b;
if (r == 0.0 && a != (-b))
You could use something like this then as a multiplication of 2 members will return 0 only if one of them is 0
Code to be adapted of course
static double Multiply(double a, double b)
Well was wondering, why should it throw an Exception ? It's not it's a limit of the system. as the multiplication of 1.0E-307 by itself will give you 1.0E-614 and the system hasn't been specified...
June 29th, 2012, 09:46 AM
Console.WriteLine("Press anykey to quit");
June 29th, 2012, 02:19 AM
EDIT : Removed my reply. Checked doesn't work for float values
June 27th, 2012, 09:36 AM
Something like this ?
Random rand = new Random();
string SelectStringFromArray(string s)
if (s.Length > 0)
June 27th, 2012, 03:44 AM
In my idead you could create your custom control and then listen for Windows event messages passed to your application.
June 26th, 2012, 03:23 AM
Why do you want to make a Property that does the same thing ?
1st solution (easy way) :
Manage the keydown event and check how many characters are inside the textbox, if more discard...
June 26th, 2012, 03:11 AM
If you have MS Office installed almost all component are COM compatible, so you can use them ;)
June 26th, 2012, 03:02 AM
Use Anchor properties of controls
June 22nd, 2012, 08:57 AM
C or C# ?
Are you talking of the command prompt that pops when you debug your program ?
June 22nd, 2012, 08:51 AM
In C#.net you can override and define new operators overloads.
Nice MSDN tutorial there :
So i would say to redefine it just do...
June 22nd, 2012, 04:28 AM
I'm not sure if I understood all code but for me the code calling ReportProgress() is actually in the thread that CREATED the backgroundWorker (the UI)
The backgroundWorker is a indepedant thread...
June 22nd, 2012, 04:16 AM
Well i tried something else
i = 23;
i = 54;
June 22nd, 2012, 04:12 AM
well if your parse all input to lower case then
will never trigger as Contains is case sensitive
When your bot is...
June 20th, 2012, 07:27 AM
int i = 0;
My teacher told me never to use goto statements, trying to figure if there's...
June 19th, 2012, 02:16 PM
I checked what recives the bot when I write !Quit in my irc server
it reads !quit
don't ask me why it goes lowercase but that's why it's...
June 19th, 2012, 06:41 AM
June 15th, 2012, 03:32 AM
Suggetion : (may be a bad idea)
Divide your image in bigger chunks than just on pixel basis and count on each chuck how many white dots you have.
Let's take my image and say black squares are...
I have a class containing network incoming buffer and multiple threads trying to access it. I had to add a ManualResetEvent to act as a token preventing simultaneous access.
I have an...
At the moment I'm using a server which listens for clients on a given ports.
TcpClient tc =...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.