473,326 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Loading A Form Invisible

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
Nov 20 '05 #1
6 2966

"Daniel Friend" <da*@donotspam.com> wrote in message
news:OF**************@TK2MSFTNGP12.phx.gbl...
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
Nov 20 '05 #2
* "Daniel Friend" <da*@donotspam.com> scripsit:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #3
Daniel,

Where is that Form_Show statement?

Cor
Nov 20 '05 #4
Herfried,
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.

Mixing something up with VB6.
(I am really curious for your answer)

Cor
Nov 20 '05 #5
* "Cor Ligthert" <no**********@planet.nl> scripsit:
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.


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'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #6
> >>> 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.


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'.

Could have been the only good answer otherwise there would have been a long
message.

:-)

Cor
Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Matthew | last post by:
I am not the most talented programmer to grace the earth by a long shot. But I've got a gripe I need to air about the .NET implementaion of Visual Basic. I can live with alot of the major changes...
6
by: Curious George | last post by:
I have a page that takes about 10 seconds to load the first time it is run. I would like to first display a little animated gif telling the user that the page is loading. How do I do this with...
3
by: Jose_Csharp | last post by:
Hi guys, I´m trying to make a startup invisible form. I don´t want a form with Opacity property 0. First I did the property Visible of the form to false. It wasn´t a good idea, was too easy. Then...
6
by: Mr. Analogy | last post by:
I'd like to load a form in the background (invisibly) and then, afer the controls are all drawn (and resized, in this case), I'd like to show it. I.e., I want the form to show up nice and crisply,...
10
by: Dan | last post by:
How does one load a hidden form in VB.NET? There doesn't seem to be a design time "visible" property any more?
3
by: Eric A. Johnson | last post by:
In a new project I'm creating, I have my first form that loads being used as a splash screen, with a timer that activates after 5 seconds. I then want the main form to load. However, it isn't...
2
by: adiel_g | last post by:
I added a user control to a webform in Asp.net 2.0. I am also adding several other user controls to this webform. Now I am trying to find a way to stop the user controls from loading up when I...
6
by: A.Weinman | last post by:
Hello all, I have an application that has multiple forms, only 3 of which matter for this issue. There is a main form that starts invisible and does nothing more than start other forms and link...
0
by: Rinoa | last post by:
I'm developing a program with a login form. I want the login in form to be the first form that loads, and I want it to close itself when the main CP loads. However, when I set frmLogIn as the startup...
1
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi all, misters I have a WinForms that contains a Panel. I want to add controls dynamically to the panel. My code is similar like this:
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.