Solved

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

Posted on 2000-02-21
1
122 Views
Last Modified: 2010-05-02
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.
0
Comment
Question by:gizz
1 Comment
 
LVL 9

Accepted Solution

by:
samopal earned 50 total points
ID: 2543214
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question