Click here to Skip to main content
15,915,513 members
Home / Discussions / C#
   

C#

 
GeneralMobile to Computer communication Pin
Jimi George2-Aug-05 17:42
Jimi George2-Aug-05 17:42 
GeneralAccess...pass a value from one form to another form Pin
vtalau2-Aug-05 16:30
vtalau2-Aug-05 16:30 
GeneralRe: Access...pass a value from one form to another form Pin
Christian Graus2-Aug-05 16:50
protectorChristian Graus2-Aug-05 16:50 
GeneralGetting assembly name Pin
mikker_1232-Aug-05 16:26
mikker_1232-Aug-05 16:26 
GeneralRe: Getting assembly name Pin
[Marc]2-Aug-05 16:31
[Marc]2-Aug-05 16:31 
GeneralRe: Getting assembly name Pin
mikker_1232-Aug-05 17:12
mikker_1232-Aug-05 17:12 
GeneralProper use of Refresh() and Invalidate() Pin
Mutty2-Aug-05 15:59
Mutty2-Aug-05 15:59 
GeneralRe: Proper use of Refresh() and Invalidate() Pin
mikker_1232-Aug-05 16:20
mikker_1232-Aug-05 16:20 
Uf, that happend a lot when I first used drawing. What I learned is that drawing directly in OnPaint event isn't good solution in most cases, better draw it in Form_Load for example.

What you must know is that in this case you need refresh you drawing in Form's Activated event... because if you hide ur Form (which happends a lot when in debug mode) and than show it again your precious work will be gone...

If you follow my suggestion and drop function calling in Page_Load then you'll have code like this:
<br />
Form_Load()<br />
{<br />
     DrawStuff();<br />
}<br />
<br />
Form_Activated()<br />
{<br />
     DrawStuff();<br />
}<br />


In case you stick with OnPaint() I guess simple this.Invalidate(true); in Form_Activated should do the trick.

I guess someone will eventualy give you right answer but if you get stuck, drop a code - that will help us to help you.

cheers
GeneralRe: Proper use of Refresh() and Invalidate() Pin
Mutty3-Aug-05 2:26
Mutty3-Aug-05 2:26 
GeneralRe: Proper use of Refresh() and Invalidate() Pin
mikker_1233-Aug-05 8:34
mikker_1233-Aug-05 8:34 
GeneralDeleting a Whole Row Pin
tatchung2-Aug-05 15:34
tatchung2-Aug-05 15:34 
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 15:52
protectorChristian Graus2-Aug-05 15:52 
GeneralRe: Deleting a Whole Row Pin
mikker_1232-Aug-05 16:08
mikker_1232-Aug-05 16:08 
GeneralRe: Deleting a Whole Row Pin
tatchung2-Aug-05 16:19
tatchung2-Aug-05 16:19 
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 16:50
protectorChristian Graus2-Aug-05 16:50 
GeneralRe: Deleting a Whole Row Pin
tatchung2-Aug-05 17:10
tatchung2-Aug-05 17:10 
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 17:45
protectorChristian Graus2-Aug-05 17:45 
GeneralRe: Deleting a Whole Row Pin
tatchung2-Aug-05 17:52
tatchung2-Aug-05 17:52 
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 17:57
protectorChristian Graus2-Aug-05 17:57 
GeneralRe: Deleting a Whole Row Pin
tatchung2-Aug-05 18:05
tatchung2-Aug-05 18:05 
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 18:07
protectorChristian Graus2-Aug-05 18:07 
GeneralRe: Deleting a Whole Row Pin
tatchung2-Aug-05 18:13
tatchung2-Aug-05 18:13 
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 18:15
protectorChristian Graus2-Aug-05 18:15 
GeneralRe: Deleting a Whole Row Pin
tatchung2-Aug-05 18:21
tatchung2-Aug-05 18:21 
GeneralRe: Deleting a Whole Row Pin
tatchung4-Aug-05 21:53
tatchung4-Aug-05 21:53 

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.