[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 286
  • Last Modified:

VB App not on Task Bar

I've created an application using VB6 Enterprise Edition.  The app was installed using InstallShield Express.  When the user starts the application it doesn't show on the Task Bar.  If the user starts other applications while mine is running, my app is hidden in back of the other apps.  The only way to get back to my app is to minimize every other app which then shows my app on the desktop.

How do I add my app to the Task Bar?

0
Melvin
Asked:
Melvin
1 Solution
 
KDivadCommented:
Check the ShowInTaskbar property of the form.
0
 
JuiletteCommented:
'if the form is titleless you need this

Private Declare Function SetWindowLong Lib "user32" _
Alias "SetWindowLongA" (ByVal hwnd As Long, _
ByVal nIndex As Long, ByVal dwNewLong As Long) _
As Long

Private Const GWL_STYLE = (-16)
Private Const WS_SYSMENU = &H80000

'<<<<<<   Form load  >>>>>>

Private Sub Form_Load()
Call SetWindowLong(Me.hwnd, GWL_STYLE, WS_SYSMENU)
End Sub


0
 
cantrellCommented:
Or, you can just make it on top by doing this.

Public Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long


'Make the form  on top.
SetWindowPos hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE

0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
MelvinAuthor Commented:
The solution that I used to correct my problem was provided by kdivad as a comment.  How do I get credit to that individual?
0
 
KDivadCommented:
There should be a link next to my name on any of my posts that says something like "Accept Comment As Answer". If not, then reject the current answer, then the link should be there. If for some reason it's STILL not there, let me know and I'll post an answer.
0
 
MelvinAuthor Commented:
The solution that I used to correct my problem was provided by kdivad as a comment.  How do I get credit to that individual?

cantell's answer wasn't unsatisfactory. I decided to use someone else's "comment" instead.

0
 
KDivadCommented:
You should have been able to pick "Accept comment as answer" but here: I'll answer it.
cantrell had a good way to get rid of your problem (losing the form) and I did think of it, but it wasn't what you asked for, so I figured you might already have thought of it.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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