Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
VB6 Form resize diable user from manually resizing it?
Old
  (#1)
JT
Guest
 
Posts: n/a
Default VB6 Form resize diable user from manually resizing it? - 06-04-2007, 10:35 AM

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?

Thank you,
JT




   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: VB6 Form resize diable user from manually resizing it?
Old
  (#2)
Dean Earley
Guest
 
Posts: n/a
Default Re: VB6 Form resize diable user from manually resizing it? - 06-04-2007, 10:35 AM

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 subcl*** and handle the WM_GETMINMAXINFO message.

--
Dean Earley (EMAIL REMOVED)
i-Catcher Development Team

iCode Systems
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: VB6 Form resize diable user from manually resizing it?
Old
  (#3)
Dean Earley
Guest
 
Posts: n/a
Default Re: VB6 Form resize diable user from manually resizing it? - 06-04-2007, 10:35 AM

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 subcl*** 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 (EMAIL REMOVED)
i-Catcher Development Team

iCode Systems
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: VB6 Form resize diable user from manually resizing it?
Old
  (#4)
CajunCoiler
Guest
 
Posts: n/a
Default Re: VB6 Form resize diable user from manually resizing it? - 06-04-2007, 10:35 AM

You could cheat, and set it to style 3 (Fixed Dialog), and plant your own
Min/Max buttons
on the form.

"JT" <EMAIL REMOVED> wrote in message
news:46505d6e$0$15096$EMAIL REMOVED...
> 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?
>
> Thank you,
> JT
>
>
>
>



   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top