AlexCode Posted September 12, 2003 Posted September 12, 2003 Hi... How can I make something like the VB6 AutoRedraw method in .net?? I've tryed almost averything but with no luck. :confused: Thanks Quote Software bugs are impossible to detect by anybody except the end user.
*Experts* mutant Posted September 12, 2003 *Experts* Posted September 12, 2003 If you are doing your painting in the paint event you should have no problem. Are you drawing in the paint event? Quote
*Experts* Volte Posted September 12, 2003 *Experts* Posted September 12, 2003 If you mean the automatic double buffer functionality of AutoRedraw, in your form's constructor, put the following lines:SetStyle(ControlStyles.AllPaintingInWmPaint, True) SetStyle(ControlStyles.DoubleBuffer, True) SetStyle(ControlStyles.UserPaint, True) Quote
AlexCode Posted September 12, 2003 Author Posted September 12, 2003 Sorry if I missexplained myself. I'm not drawing nothing in the Paint method. The problem is that I've some forms with some controls (quite a few including a grid, populated with a huge database) and when this form loads you can see the controls drawing. In VB6 I can work around this setting the Autoredraw = False in the begining of the draw and setting it True again at the end! Such easy task must have a similar method in .net, otherwise it's one more important thing missing... Thank you all... Quote Software bugs are impossible to detect by anybody except the end user.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.