GDI Interface
-
I am drawing a binary tree on form. but when i resize form window to small and resize it back, the portion of drawing which is in resize area, is got erased. how can i get that drawing back.. Pls help me out
-
I am drawing a binary tree on form. but when i resize form window to small and resize it back, the portion of drawing which is in resize area, is got erased. how can i get that drawing back.. Pls help me out
-
There is no repaint method for form object. How can i repaint
-
There is no repaint method for form object. How can i repaint
-
I am drawing a binary tree on form. but when i resize form window to small and resize it back, the portion of drawing which is in resize area, is got erased. how can i get that drawing back.. Pls help me out
Hi cshivaprasad! :) If you're inherting from a form, add these lines of code to your constructor.
SetStyle(ControlStyles.ResizeRedraw, true);
this will automatically repaint your form when it's resize.
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.DoubleBuffer, true);this will prevent the flickering of your form. hope these help! :) microsoc :cool: