Monday 15 September 2014

winforms - How to not constantly resizing a control docked in a Windows Form? -


Is there a way to resize a control that is completely docked in Windows format?

Resizing our control takes a lot of CPUs, so we want to change the shape only when the user has stopped changing the size (mouse up) to tell each other or when Has not been pulled.

Is there something inbuilt functionality in Windows Firefox to do this?

SendMessage (ctrlControl.Handle, WM_SETREDRAW, 0, 0)

To resume the drawing:

  SendMessage (ctrlControl.Handle, WM_SETREDRAW, 1, 0) ctrlControl.Refresh ()    

No comments:

Post a Comment