Click here to Skip to main content
15,899,314 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
hello all, here I'm trying to plot a graph with two axes X and Y,by receiving data from a listcontrol column.I need to get a curve of the thread function second (milliseconds),since I'm currently programming a webserver
thank you
Posted
Comments
walterhevedeich 18-Apr-11 6:00am    
Programming a webserver? Thats cool.
Sergey Alexandrovich Kryukov 18-Apr-11 14:43pm    
I don't see anything particular cool (as all components are available in .NET), but cannot understand why drawing anything is this is a server code -- who will see it?
If this is some deeper idea, I would like to know -- ***that*** would be really interesting.
--SA
walterhevedeich 18-Apr-11 20:59pm    
That was supposed to be a sarcasm since he said he was programming a webserver. I was thinking he is doing something like IIS or apache. forgot to include the smiley though. :)
Sergey Alexandrovich Kryukov 18-Apr-11 22:33pm    
I feel you sarcasm now. :-)
--SA
Sergey Alexandrovich Kryukov 18-Apr-11 14:44pm    
Tag it! WPF or Forms or what?!
--SA

You can use the Graphics class for drawing directly onto your form:

Graphics g = this.CreateGraphics();
g.DrawLine(new Pen(Color.Black, 5), new Point(0,0), new Point(this.Width, 0));


Or you can create a Image and show this in a PictureBox on your form. (Google it plz; Image / Bitmap class)
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900