User resizes a form: Only one event instead of hundreds

  • Thread starter Thread starter Robert Schneider
  • Start date Start date
R

Robert Schneider

Hi,

I have a form that is resizable. On the form is a user control (ocx). To
resize the user control I have to call a certain method. Till now I used the
Form.Layout event. This works well. But what I would like to have is that
the certain method is called only once, when the user releases the mouse
button. It would also be sufficient if the whole form is only repainted when
the user releases the mouse button. I could imagine to display just a frame
for resizing. Like the windows-explorer windows where you have the option to
enable or disable this behaviour.

I tried it with ResizeRedraw = false in the load event of the form (but it
was false anyway when the debugger came to that line). But it has no effect
for some reason. Is it because I use the layout event? It there another
event?

Cheers,
Robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top