Loading A Form Invisible

  • Thread starter Thread starter Daniel Friend
  • Start date Start date
D

Daniel Friend

I have an MDI child form that I need to load and run, but I do not want it
displayed.

I tried

Dim myForm as form1
myForm=new form1
myForm.MDIParent=frmMDIParent
myForm.Show

in the Form_Show statement I have
me.hide

I am getting an exception error in windows.forms.dll

Any help to achieve this would be greatly appreciated

Thanks,


Dan
 
Daniel Friend said:
I have an MDI child form that I need to load and run, but I do not want it
displayed.

I tried

Dim myForm as form1
myForm=new form1
myForm.MDIParent=frmMDIParent
myForm.Show

in the Form_Show statement I have
me.hide

I am getting an exception error in windows.forms.dll

Any help to achieve this would be greatly appreciated

Thanks,


Dan

The form "loads" when you do the New Form1...is there code in the Show event
handler that you need to process???

Mythran
 
* "Daniel Friend said:
I have an MDI child form that I need to load and run, but I do not want it
displayed.

I tried

Dim myForm as form1
myForm=new form1
myForm.MDIParent=frmMDIParent
myForm.Show

in the Form_Show statement I have
me.hide

I am getting an exception error in windows.forms.dll

Any help to achieve this would be greatly appreciated

Simply don't call the form's 'Show' method to prevent the form from
showing.
 
Herfried,
Simply don't call the form's 'Show' method to prevent the form from
showing.
Mixing something up with VB6.
(I am really curious for your answer)

Cor
 
* "Cor Ligthert said:
Mixing something up with VB6.
(I am really curious for your answer)

No, I don't mix anything up. I assume the OP refers to 'Form_Load'.
 
in the Form_Show statement I have
No, I don't mix anything up. I assume the OP refers to 'Form_Load'.
Could have been the only good answer otherwise there would have been a long
message.

:-)

Cor
 
Back
Top