normal window forms gets maximised automaticaly

Ruwani

New member
Joined
May 12, 2005
Messages
3
Programming Experience
Beginner
when i open a small normal window on top of a maximised form the normal for also gets maximised automaticaly..............plz reply if u have overcome this
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
is this an MDI app?

if it is then when you open a new form when the currently opened child window is maximized then the new child window will be maximized as well

if this isnt an MDI app then could you post the code that opens the new normal window?
 

Ruwani

New member
Joined
May 12, 2005
Messages
3
Programming Experience
Beginner
thx for u r reply.........................even if u do wht u said if a small form is open on top of a maximised form it gets maximised................(plz mote tht this is a MDI application)
 

B Rad

Member
Joined
Nov 20, 2004
Messages
10
Location
Goldsboro, NC
Programming Experience
1-3
Ruwani,

To start off, if your application doesn't require MDI....refrain from using MDI capabilities. If you want the look, however, you can look into embedding forms within forms.

Embedding a form does two things, (1) In an MDI app, if you have controls on a parent form, the controls will be visible through the child form. Embedded forms automatically cover up anything in the "parent" form. (2) You will not have the problem of your child form defaulting to the state or the parent form.

Personally, if my application won't work SDI (Single Document Interface), I embed my forms. The only problem I have run into with embedded forms is my "child" form will not startup centerscreen.

Wrapping up, embedded forms, by default, behave better than a true MDI application. By the way, Microsoft actually frowns upon the use of MDI in real-world applications. I wish I could remember where I read that statement.

Anyway, I hope this helped.


B Rad
 
Top Bottom