Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
Generalredraw a form Pin
theDawckta22-May-04 16:22
theDawckta22-May-04 16:22 
GeneralRe: redraw a form Pin
Charlie Williams22-May-04 18:42
Charlie Williams22-May-04 18:42 
GeneralRe: redraw a form Pin
theDawckta22-May-04 19:11
theDawckta22-May-04 19:11 
GeneralRe: redraw a form Pin
Charlie Williams22-May-04 19:22
Charlie Williams22-May-04 19:22 
GeneralRe: redraw a form Pin
theDawckta22-May-04 19:33
theDawckta22-May-04 19:33 
GeneralRe: redraw a form Pin
Heath Stewart23-May-04 4:18
protectorHeath Stewart23-May-04 4:18 
GeneralRe: redraw a form Pin
theDawckta23-May-04 8:21
theDawckta23-May-04 8:21 
GeneralRe: redraw a form Pin
Dave Kreskowiak23-May-04 16:25
mveDave Kreskowiak23-May-04 16:25 
Yes, .Show() instead of ShowDialog(). But, your really shouldn't be calling this anyway. Your form should not have to show itself again and again every time you want to change the image. Also, your use of many different pictureboxes is probably what is giving you your flickering. If your pictureboxes are on top of each other, a repaint of the form will repaint each picturebox. Each box will repaint and invalidate an area of another picturebox, which will repaint and invalidate another area of another picturebox, which will repaint, ...

Like Heath told you before, and I'll say it again, your should be using only a single picturebox and painting all of your images into that one box yourself. That way you have MUCH greater control over what gets painted when and you will eliminate nearly all possible causes of flickering.


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

GeneralRe: redraw a form Pin
theDawckta23-May-04 8:56
theDawckta23-May-04 8:56 
GeneralRe: redraw a form Pin
theDawckta22-May-04 19:34
theDawckta22-May-04 19:34 
GeneralRe: redraw a form Pin
Dave Kreskowiak23-May-04 4:23
mveDave Kreskowiak23-May-04 4:23 
General"On screen keyboard" user control Pin
Alan Zhao22-May-04 15:21
Alan Zhao22-May-04 15:21 
GeneralRe: "On screen keyboard" user control Pin
Marc Clifton23-May-04 3:07
mvaMarc Clifton23-May-04 3:07 
GeneralRe: "On screen keyboard" user control Pin
Alan Zhao23-May-04 3:53
Alan Zhao23-May-04 3:53 
GeneralRe: "On screen keyboard" user control Pin
Heath Stewart23-May-04 4:13
protectorHeath Stewart23-May-04 4:13 
GeneralRe: "On screen keyboard" user control Pin
Heath Stewart23-May-04 4:03
protectorHeath Stewart23-May-04 4:03 
GeneralRe: "On screen keyboard" user control Pin
Alan Zhao23-May-04 4:17
Alan Zhao23-May-04 4:17 
GeneralRe: "On screen keyboard" user control Pin
Heath Stewart23-May-04 4:20
protectorHeath Stewart23-May-04 4:20 
GeneralRe: "On screen keyboard" user control Pin
Marc Clifton23-May-04 4:25
mvaMarc Clifton23-May-04 4:25 
GeneralRe: "On screen keyboard" user control Pin
Alan Zhao23-May-04 5:59
Alan Zhao23-May-04 5:59 
GeneralRe: "On screen keyboard" user control Pin
Marc Clifton23-May-04 11:39
mvaMarc Clifton23-May-04 11:39 
GeneralSemi-crosspost: Recompiling - but the assembly isn't updated Pin
Jan R Hansen22-May-04 13:25
Jan R Hansen22-May-04 13:25 
GeneralRe: Semi-crosspost: Recompiling - but the assembly isn't updated Pin
Marc Clifton22-May-04 14:54
mvaMarc Clifton22-May-04 14:54 
GeneralRe: Semi-crosspost: Recompiling - but the assembly isn't updated Pin
Jan R Hansen22-May-04 22:23
Jan R Hansen22-May-04 22:23 
GeneralRe: Semi-crosspost: Recompiling - but the assembly isn't updated Pin
Heath Stewart23-May-04 4:01
protectorHeath Stewart23-May-04 4:01 

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.