Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add to task bar (not system tray) 2

Status
Not open for further replies.

xGrob

Programmer
Jun 6, 2001
36
0
0
CA
Does anyone know how to add a fake "minimized window" to the taskbar? not an icon in the system tray, i know how to do that...

my problem:
i need to load a VB form MODALLY and I want it to show up in the taskbar. The reason it has to be done modally is because the calling function MUST wait for the form to be closed without doing this:

while frmMain.Visible
DoEvents
wend

there must be some sort of api for adding a window to the taskbar...
 
Have a look at...

If you include the type library IActDes.tlb from the zip file tl_adsk.zip in your project then you can do the following...

Code:
dim tbl as new taskbarlist
call tbl.addtab(hwnd)
msgbox "I have an entry in the taskbar"
call tbl.deletetab(hwnd)

Note - requires shell32.dll v4.71 which really means you need IE4 or above
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top