Solved

Modal form doesn't show up in Windows Task Bar

Posted on 1998-09-04
8
182 Views
Last Modified: 2010-04-30
I am loading an application modal login form.  If I tab away from it it does not show up again and it is not shown in the task bar.  Is there any way to make it show up in the task bar.  Yes, i do have ShowInTaskbar set to true.  I would like it to stay modal becuase it is loaded as part of a startup module.  I could use a doevents while the form is visible but it just seems that there is a better way.  Is there?
0
Comment
Question by:emidiod
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 14

Expert Comment

by:waty
ID: 1433035
The solution, is hiding other windows or disabling them.
0
 

Author Comment

by:emidiod
ID: 1433036
I do not have any other windows visible in the app.  I am just starting the app and loading only the login form
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1433037
Does the form have a caption?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:emidiod
ID: 1433038
Yes it does have a caption but no control box
0
 
LVL 4

Expert Comment

by:mcix
ID: 1433039
You are loading the Login Form from a Sub Main()?

0
 

Author Comment

by:emidiod
ID: 1433040
Yes I am loading it from a Sub Main()
0
 
LVL 4

Expert Comment

by:mcix
ID: 1433041
Unfortunately this is by design and there is no real way to do what you want.  

MS has an article about it @:

http://support.microsoft.com/support/kb/articles/q178/7/54.asp




0
 
LVL 7

Accepted Solution

by:
tward earned 50 total points
ID: 1433042
Note that in VB4 it does show in the task bar!!  This is a change between VB4 and VB5+......

PRB: Modal Form Does Not Appear in the Taskbar
Last reviewed: August 7, 1998
Article ID: Q178754
--------------------------------------------------------------------------------

The information in this article applies to:
Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, versions 5.0, 6.0

SYMPTOMS
A form displayed modally does not appear in the taskbar.

RESOLUTION
To have a form appear in the taskbar, show the form as a non-modal form. The MORE INFORMATION section below shows how to show a form in the taskbar.

STATUS
This behavior is by design.

MORE INFORMATION
By Windows user interface design standards, modal forms do not appear in the system taskbar. The next section shows you how to create a sample project that simulates a modal form so that the form appears in the taskbar.

Step-by-Step Example

Start a new Standard EXE project in Visual Basic. Form1 is created by default.

Add a CommandButton to the Form1 form.

Add a second Form to the project. Add a CommandButton to the Form2 form.

Copy the following code to the Code window of the Form1 form:


      Option Explicit
      Private Sub Command1_Click()
          Form1.Enabled = False
          Form2.Show
      End Sub


Copy the following code to the Code window of the Form2 form:


      Option Explicit
      Private Sub Command1_Click()
          Unload Form2
          Form1.Enabled = True
          Form1.SetFocus
      End Sub


On the Run menu, click Start or press the F5 key to start the program. On the Form1 form, click the CommandButton to display the Form2 form. Note that the Form2 form also appears in the taskbar.  

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

734 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