Starting a VB app "Invisibly"

G

Guest

I have an unmanged C++ app (App A) which launches my VB app (App B).

I need the form in AppB to be invisible until App A post a windows message
that App B recognises and shows its form and controls.

I can handle the messaging by overriding WndProc, but I can't get App B
started without showing itself.

Any suggestions on how to do this?
 
M

Mr. Arnold

Dave Burdon said:
I have an unmanged C++ app (App A) which launches my VB app (App B).

I need the form in AppB to be invisible until App A post a windows message
that App B recognises and shows its form and controls.

I can handle the messaging by overriding WndProc, but I can't get App B
started without showing itself.

Any suggestions on how to do this?
 
M

Mr. Arnold

Dave Burdon said:
I have an unmanged C++ app (App A) which launches my VB app (App B).

I need the form in AppB to be invisible until App A post a windows message
that App B recognises and shows its form and controls.

I can handle the messaging by overriding WndProc, but I can't get App B
started without showing itself.

Any suggestions on how to do this?

I would think you would simply tell the App B form in code to hide itself
during the Form Load process.
 
G

Guest

I do that, but still it displays. I guess I must be making it visible
somewhere else.

Thanks
 
H

Hardono Arifanto

Hi Dave,

What about setting the opacity into 0% ? It should render your form
invisible.

Regards,
Hardono Arifanto
 
A

AlexS

This should to the trick

Form f = new Form();

f.Name = "InvisibleForm";

f.ShowInTaskbar = false;

f.Visible = false;

//TestProps(f);

Application.Run(f);



HTH

Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top