Click here to Skip to main content
15,904,415 members
Home / Discussions / C#
   

C#

 
AnswerRe: Check if System Time has changed (by user) Pin
Dave Kreskowiak11-Sep-05 7:21
mveDave Kreskowiak11-Sep-05 7:21 
GeneralRe: Check if System Time has changed (by user) Pin
gnjunge12-Sep-05 1:17
gnjunge12-Sep-05 1:17 
GeneralRe: Check if System Time has changed (by user) Pin
Dave Kreskowiak12-Sep-05 1:32
mveDave Kreskowiak12-Sep-05 1:32 
GeneralRe: Check if System Time has changed (by user) Pin
gnjunge12-Sep-05 2:25
gnjunge12-Sep-05 2:25 
Question2 VS UI Q's: Reorder Funcs and Collapse funcs Pin
Niklas Ulvinge11-Sep-05 1:32
Niklas Ulvinge11-Sep-05 1:32 
QuestionHooking 456 port Pin
akshayswaroop11-Sep-05 1:30
akshayswaroop11-Sep-05 1:30 
AnswerRe: Hooking 456 port Pin
KaptinKrunch12-Sep-05 9:33
KaptinKrunch12-Sep-05 9:33 
GeneralRe: Hooking 456 port Pin
Anonymous12-Sep-05 18:53
Anonymous12-Sep-05 18:53 
QuestionDefault Printer Pin
teeka11-Sep-05 1:08
teeka11-Sep-05 1:08 
AnswerRe: Default Printer Pin
Mohamad Al Husseiny11-Sep-05 8:37
Mohamad Al Husseiny11-Sep-05 8:37 
QuestionDockable interface Pin
rmedo11-Sep-05 0:41
rmedo11-Sep-05 0:41 
AnswerRe: Dockable interface Pin
S. Senthil Kumar11-Sep-05 2:51
S. Senthil Kumar11-Sep-05 2:51 
Questiondata relationship Pin
steve_rm10-Sep-05 23:12
steve_rm10-Sep-05 23:12 
AnswerRe: data relationship Pin
Guffa10-Sep-05 23:59
Guffa10-Sep-05 23:59 
QuestionWeb enable a Windows C# app Pin
StrayGrey10-Sep-05 20:06
StrayGrey10-Sep-05 20:06 
AnswerRe: Web enable a Windows C# app Pin
Guffa11-Sep-05 0:02
Guffa11-Sep-05 0:02 
QuestionDataTable PlaceHolder Pin
Expert Coming10-Sep-05 18:40
Expert Coming10-Sep-05 18:40 
AnswerRe: DataTable PlaceHolder Pin
rudy.net11-Sep-05 16:41
rudy.net11-Sep-05 16:41 
QuestionUsing GDI+ functions in a class library Pin
Steve Messer10-Sep-05 17:43
Steve Messer10-Sep-05 17:43 
AnswerRe: Using GDI+ functions in a class library Pin
Andrew Kirillov10-Sep-05 21:03
Andrew Kirillov10-Sep-05 21:03 
GeneralRe: Using GDI+ functions in a class library Pin
Steve Messer10-Sep-05 21:39
Steve Messer10-Sep-05 21:39 
QuestionMessageBox erases lines drawn???? Pin
Anonymous10-Sep-05 16:00
Anonymous10-Sep-05 16:00 
AnswerRe: MessageBox erases lines drawn???? Pin
Dave Kreskowiak10-Sep-05 16:17
mveDave Kreskowiak10-Sep-05 16:17 
This is happening because you're doing some drawing from a button click event. Thereis no code in your Paint event to redraw these objects when the form is told to repaint itself.

Your app must keep a "state" that contains everything the Paint event needs to know to redraw everything at any time, not just wehen you click a button on your form.

Think about this. You have a button on your form that when you click, you add a random line to the form. Now, if you drew the line from inside the Click event of the button, the line will only be drawn once, ever! If the form is overlayed by another app or form and then moved out of the way, the Paint event doesn't know anything about the line that was drawn, so it can't be redrawn when the form is repainted.

But, if you add the endpoints of the line to an array and your Paint event is coding to redraw the lines using the data in the array, there's no problem. If the lines get overlapped by another app or form, then the app or form is moved out of the way, the Paint event now knows how to redraw the lines.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

QuestionAnyway to be notified of time changes Pin
monrobot1310-Sep-05 13:27
monrobot1310-Sep-05 13:27 
AnswerRe: Anyway to be notified of time changes Pin
Mohamad Al Husseiny10-Sep-05 14:33
Mohamad Al Husseiny10-Sep-05 14:33 

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.