Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active form and minimize

Status
Not open for further replies.

heydyrtt

Programmer
Dec 12, 2001
63
US
Main form is loaded, and I load a another form, when the focused form is up and if I minimize the main form, the focused form stays on the screen, does not minimize with main form. How do you make the focused form stay with main form.

Heydyrtt
 
In and SDI (not MDI) environment, you could do this:

on minimize of main form:

sub form_minimize()
dim frm as form

for each frm in forms
if not frm.windowstate = vbminimized then frm.windowstate = vbminimized
next
end sub
if you want them to minimize regardless of which form was minimize just copy those 4 lines into each forms minimize event.
 
Form2.Show , Me
or
Form2.Show vbmodal, Me

Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
Nice one JavaJoe,

I was over complicating. However, if you show form2 modally, you won't get this effect as you wont be able to minimize the owner?

VBrit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top