• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 547
  • Last Modified:

How to Show VB APP in TaskBar

I have an app written in VB 6.0 SP6.  When I open my app the main form appears on the screen and an entry also appears in the Windows Task Bar.  The description of the item in the task bar is the same as the caption on the main form.  As soon as I go to another form the Windows Task Bar entry dissapears.  Every time I return to the Main form an entry is again placed in the Task Bar.  Internally, when I go from the main form to the other forms I hide the main form and open the other forms with a statement such as 'frmCoverSheet.Show vbModal'.  The forms are all independant of one another (not midi).

I would like the entry to stay in the task bar the entire time that the APP is running.  What do I need to do?
0
mlcktmguy
Asked:
mlcktmguy
  • 2
1 Solution
 
Erick37Commented:
You may try this:

Me.Windowstate = vbMinimized

Form2.Show vbModal

Me.Windowstate = vbNormal
0
 
Erick37Commented:
Instead of hiding the form using the .Visible property, perhaps move it offscreen while the other form is displayed:

Dim x As Long, y As Long

x = Me.Left
y = Me.Top

'Move offscreen
Me.Move Screen.Width

DoEvents

'Show modal form
Form2.Show vbModal

'Restore
Me.Move x, y
0
 
RogueSolutionsCommented:

If you don't show your forms as vbModal they get a TaskBar entry.  Since you are hiding before showing the next form you'll only have one TaskBar entry.

Of course your coding may not be suited to that change.

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now