Type: Posts; User: rliq
Search took 0.04 seconds.
October 2nd, 2012, 08:57 PM
Can anyone see a way that I can calculate layerOutputs[layerIndex] using a LINQ expression?
layerOutputs[layerIndex] = 0.0;
for (int layerInput = 0; layerInput <...
April 30th, 2012, 03:58 AM
1) Rectangle or Square?
2) Are all Rectangles/Squares the same size?
3) Are the circles always the same size?
March 19th, 2012, 06:13 PM
It's hard to read code that is not indented. Also, you've not actually told us what your problems is.
People here will help you, but you need to be more specific. You can't just say "My...
March 19th, 2012, 04:31 PM
Also remember that if:
index = 3
index++ / 5 is three fifths
March 19th, 2012, 12:21 AM
Not sure how bullet proof this is, but it works for your sample. Probably best if you also include a flag to say whether you are inside or outside a tag. Then you can report an error (if desirable)...
March 19th, 2012, 12:00 AM
Can you post the code here, showing how you read the text from the file. Then we will be able to see what internal structure you have used and better answer your question.
March 1st, 2012, 11:25 PM
In general, all drawing code should be placed in the forms Paint event handler. This is automatically called when part of your application needs to be drawn.
March 1st, 2012, 04:52 PM
I tend to use 'this' when referring to member functions that I did not write, i.e. those in a class that mine is derived from. Having said that, I'm always arguing with myself over this standard. ...
February 27th, 2012, 04:38 PM
You need to draw all of the lines every time in your Paint handler.
I just wrote this code, it may help you make some progress.
February 27th, 2012, 04:06 PM
If you write each block of data to a different temp file each time, then the whole of its contents is the string that was written. Then append the whole of that text to the end of another file and...
February 27th, 2012, 03:29 PM
I think you need to post a sample of your code. Saying that "you tried it the same way as you did in the other form", is meaningless, when we don't know what you did in the other form.
February 27th, 2012, 03:25 PM
string autocode = string.Empty;
February 26th, 2012, 10:33 PM
I guess you may already have seen the link, showing an implementation of the "Thread Safe" Dictionary class.
February 26th, 2012, 10:31 PM
That is correct, I just read the Dictionary<> documentation on MSDN. Guess I was just lucky that I did not create two duplicate keys...
Ultimately though, only testing will determine which way...
February 26th, 2012, 09:51 PM
I just wrote this as an experiment...
February 26th, 2012, 08:31 PM
yep.. should be....
string autocode = new string();
February 26th, 2012, 08:15 PM
autcode = ...
// use autocode here
February 26th, 2012, 07:30 PM
Can you explain the process a little more... You have 10 threads 'updating'. Is this adding, removing, updating? Is 1 removing and 9 adding or 9 removing and 1 adding etc...?
February 26th, 2012, 04:32 PM
1) How are you drawing the graph?
2) In which part of your code are you drawing the graph?
Post some of your code here.
February 26th, 2012, 04:11 PM
You have not said what your issue is? What is the question that you want answering?
February 26th, 2012, 03:59 PM
9 out of 10 times I believe the answer to this would be Dictionary<,>. (Memory access faster than Disk access)
A database may be faster, if there are millions of items, the database is on a...
February 26th, 2012, 03:47 PM
Your server program could write each incoming block of text to a new file. Eg: 1.txt, 2.txt, 3.txt (or even get the system to generate a temp file name for you, so you don't have to keep a counter)....
February 26th, 2012, 03:29 PM
February 23rd, 2012, 08:38 PM
I'm not sure that you can add null items to a ComboBox...?
February 23rd, 2012, 04:53 PM
You can use the:
// Create a Graphics object for the Control.
Graphics g = pictureBox.CreateGraphics(); to get the Graphics object for the PictureBox control. Then use the members of the...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.