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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automatically show a form after mdi - startup

Status
Not open for further replies.

noka

Technical User
Apr 30, 2000
29
0
0
DE
I want to show a form after starting an mdi-form. If I put the show method in mdiform_load() then it will proceed with loading the mdi-form only after the other form is closed.
any advice?

thx noka
 
ok - have it done by myself.
set the second form as an mdi-child and use it as startform.
the only problem was the positioning. i used scaleheight and scalewidth of the mdi-form and centered the startform.
[tt]
Me.Top = MDIForm.ScaleHeight - Me.Height / 2
Me.Left = MDIForm.ScaleWidth - Me.Width / 2
[/tt]
i hope nobody will use this programm on an 800x600 screen.

thx for reading this ;-)

noka
 
Start the project with the MDI_Form ,make the Form1 MDI Shild =True

in the MDI_Load : Form1.Show Eric De Decker
vbg.be@vbgroup.nl

Licence And Copy Protection AxtiveX.

Download Demo version on my Site:
Promotions before 02/28/2001 (free source codebook),visite my site
 
now i used another way:
the application starts with a main-function, not with a form. inside this i load and show the forms.
[tt]
mdiform.show
form.show vbmodal, mdiform
[/tt]
the background is that an mdichild can not be modal which is important in this case. the application handles some different things and at startup you should decide what to do. you know this behavior from the vb - programming - environment. it's an mdi-form and on startup you see a dialog form.

thx

noka
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top