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?
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.