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