home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,485 of 10,840   
   Dean Earley to Dean Earley   
   Re: VB6 Form resize diable user from man   
   21 May 07 08:49:31   
   
   From: dean.earley@icode.co.uk   
      
   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 (dean.earley@icode.co.uk)   
   i-Catcher Development Team   
      
   iCode Systems   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca