Starting a VB app "Invisibly"

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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?
 
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.
 
I do that, but still it displays. I guess I must be making it visible
somewhere else.

Thanks
 
Hi Dave,

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

Regards,
Hardono Arifanto
 
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
 
Back
Top