From: John S on 4 Mar 2010 08:34 Hello, How can I set the MDI form so that the user can not resize its dimension (height, width) using mouse ? Thanks john s *** Sent via Developersdex http://www.developersdex.com ***
From: Helmut Meukel on 4 Mar 2010 09:15 Hmm, did you try this: Private mHeight As Long, mWidth As Long Private Sub MDIForm_Load() mHeight = Me.Height mWidth = Me.Width End Sub Private Sub MDIForm_Resize() Me.Height = mHeight Me.Width = mWidth End Sub If you or your user don't like the effect then you should look into an API solution. Can't help you there, most of my apps run maximized. Helmut. "John S" <nospam> schrieb im Newsbeitrag news:u5Ao595uKHA.796(a)TK2MSFTNGP05.phx.gbl... > Hello, > > How can I set the MDI form so that the user can not resize its dimension > (height, width) using mouse ? > > Thanks > john s > > > *** Sent via Developersdex http://www.developersdex.com ***
From: Jeff Johnson on 4 Mar 2010 09:19 "John S" <nospam> wrote in message news:u5Ao595uKHA.796(a)TK2MSFTNGP05.phx.gbl... > How can I set the MDI form so that the user can not resize its dimension > (height, width) using mouse ? I have to say it: The very fact that you're asking this question tells me you shouldn't be using MDI in the first place.
From: Dee Earley on 4 Mar 2010 11:07 On 04/03/2010 13:34, John S wrote: > Hello, > > How can I set the MDI form so that the user can not resize its dimension > (height, width) using mouse ? As with any window, you handle the WM_GETMINMAXINFO or WM_SIZING The former is my preferred one for size limits. -- Dee Earley (dee.earley(a)icode.co.uk) i-Catcher Development Team iCode Systems
From: DanS on 4 Mar 2010 12:37 John S <nospam> wrote in news:u5Ao595uKHA.796(a)TK2MSFTNGP05.phx.gbl: > Hello, > > How can I set the MDI form so that the user can not resize its dimension > (height, width) using mouse ? > > Thanks > john s I haven't done an MDI project, but aren't the MDI child forms just a form and you can set the BorderStyle to fixed ?
|
Next
|
Last
Pages: 1 2 3 Prev: Correct Way To Wait Next: Error 20533 (unable to open Database) in Crystal Reports |