Dean Earley wrote:
JT wrote:
> have a VB6 project that on the form I have set the BorderStile to 2 -
sizable and created a function to resize the form and its controls min or
max.
Although, I am trying to find a way to disable the user from dragging the
bottom right hand corner from resizing. I only want min and max.
Any ideas how I can do this in code. If so, can I get an example of this
please?
If you want to have the standard minimise and maximise buttons, you will
need to subclass and handle the WM_GETMINMAXINFO message.
Or you could use a hack and just set the form size in the Resize event.
This will cause it to flicker.
With both these methods you MUST take into account the form border as it
is different for different windows versions and themes.
--
Dean Earley (de*********@icode.co.uk)
i-Catcher Development Team
iCode Systems