Click here to Skip to main content
15,887,946 members
Home / Discussions / C#
   

C#

 
GeneralRe: Thread-safe Access to Form Controls Pin
LighthouseJ6-Feb-06 12:21
LighthouseJ6-Feb-06 12:21 
GeneralRe: Thread-safe Access to Form Controls Pin
LighthouseJ6-Feb-06 15:46
LighthouseJ6-Feb-06 15:46 
GeneralRe: Thread-safe Access to Form Controls Pin
Judah Gabriel Himango6-Feb-06 16:09
sponsorJudah Gabriel Himango6-Feb-06 16:09 
GeneralRe: Thread-safe Access to Form Controls Pin
LighthouseJ6-Feb-06 16:44
LighthouseJ6-Feb-06 16:44 
Questionexport text/reports in XLS, HTML, PDF, DBF, XML... format Pin
MihaiChioariu6-Feb-06 8:23
MihaiChioariu6-Feb-06 8:23 
Questionweather report service Pin
balkang6-Feb-06 8:09
balkang6-Feb-06 8:09 
AnswerRe: weather report service Pin
usernamed6-Feb-06 9:38
usernamed6-Feb-06 9:38 
QuestionDrawLine question Pin
QzRz6-Feb-06 7:23
QzRz6-Feb-06 7:23 
Hi...

I have a Panel, and want to add a line on it. But i want the line to be drawn over time, using a timer.
But i don't know how to do that, I have drawn the first part of the line using this code:

private void panel1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
e.Graphics.DrawLine(new Pen(Color.Black), new Point(0,0), new Point(15,15));
}

This gives me a line from the top corner. But then the timer make the first tick i want it to continue draw the line, so the next pont will be from (15,15) to (30,30) and so on as the timer counts.

Can anyone tell me how to do, and/or give me some articles about drawing with C#?

Thanks
QzRz


AnswerRe: DrawLine question Pin
Guffa6-Feb-06 7:55
Guffa6-Feb-06 7:55 
QuestionHow to generate 16digit Random number using C# Pin
n_satisha6-Feb-06 7:21
n_satisha6-Feb-06 7:21 
AnswerRe: How to generate 16digit Random number using C# Pin
Colin Angus Mackay6-Feb-06 7:41
Colin Angus Mackay6-Feb-06 7:41 
GeneralRe: How to generate 16digit Random number using C# Pin
leppie6-Feb-06 7:52
leppie6-Feb-06 7:52 
AnswerRe: How to generate 16digit Random number using C# Pin
Guffa6-Feb-06 8:02
Guffa6-Feb-06 8:02 
AnswerRe: How to generate 16digit Random number using C# Pin
Sebastian Schneider6-Feb-06 10:41
Sebastian Schneider6-Feb-06 10:41 
QuestionHow to menage concurrency with timestamp (C#) Pin
ventomito6-Feb-06 6:59
ventomito6-Feb-06 6:59 
Questionuser-defined data types (definition) Pin
LuluSailor6-Feb-06 6:57
LuluSailor6-Feb-06 6:57 
AnswerRe: user-defined data types (definition) Pin
malharone6-Feb-06 7:05
malharone6-Feb-06 7:05 
QuestionForm Count Pin
deepscyberpulse6-Feb-06 6:46
deepscyberpulse6-Feb-06 6:46 
QuestionToolbar Pin
deepscyberpulse6-Feb-06 6:29
deepscyberpulse6-Feb-06 6:29 
Questionsize=new size() and form.width/height assignment fail to change form size Pin
Sebastian Schneider6-Feb-06 5:17
Sebastian Schneider6-Feb-06 5:17 
AnswerRe: size=new size() and form.width/height assignment fail to change form size Pin
Stanciu Vlad6-Feb-06 5:32
Stanciu Vlad6-Feb-06 5:32 
GeneralRe: size=new size() and form.width/height assignment fail to change form size Pin
Sebastian Schneider6-Feb-06 10:35
Sebastian Schneider6-Feb-06 10:35 
GeneralRe: size=new size() and form.width/height assignment fail to change form size Pin
Stanciu Vlad6-Feb-06 10:49
Stanciu Vlad6-Feb-06 10:49 
QuestionWeird C# String Behavior Pin
malharone6-Feb-06 4:39
malharone6-Feb-06 4:39 
AnswerRe: Weird C# String Behavior Pin
Joe Woodbury6-Feb-06 4:52
professionalJoe Woodbury6-Feb-06 4:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.