When using multiple forms in the same application, how do I prevent more than one memory space being used ?

Hi,
I'm writing an application which uses 2 forms. In Form1 I call the second form in the following way :-
 
  Sub cmdButton1_Click
    Show.Form2 modeless,Form1
  End Sub

This works great and both forms are on the desktop at the same time. The problem is that on the Windows status bar at the bottom of the screen, two instances now appear for my program, each representing a form. The user can therefore "Alt-TAB" between the two forms which is undesirable - is there any way just to get the whole program to be in one memory space.
gizzAsked:
Who is Participating?
 
samopalConnect With a Mentor Commented:
Your programm works in "one memory space". If you want to see "one instance" in the Windows Status Bar, set ShowInTaskBar property of the form Form2 to False.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.