Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi...

 

How can I make something like the VB6 AutoRedraw method in .net??

 

I've tryed almost averything but with no luck.

 

 

:confused: Thanks

Software bugs are impossible to detect by anybody except the end user.
  • *Experts*
Posted
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)

Posted

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...

Software bugs are impossible to detect by anybody except the end user.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...