Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Making Icon Appear In Taskbar Along With Time...


Hi

I was wondering how you could make your program appear in the taskbar next to the time as an icon.

Just to clarfiy: see attatchment to make sure where i mean

thanks!

Adam




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
*Resolved* Removing Taskbar Icon In Run-time (NOT System Tray Icon)
I wrote my own mp3 player ('cause Winamp sucks ), and one of the features is a very small, unobtrusive window:

I need to remove the taskbar icon, 'cause it looks dumb with a blank icon among the others.

Anyone have any ideas? All searches keep pointing to system tray icons

___________________________
Dave Applegate
Microsoft VB MVP, ACE [FAQs]
My friend has a trophy wife, but apparently she wasn't in first place.

Edited by - Metallisoft on 3/15/2004 1:39:05 PM

Making Taskbar Icon Blink
I am building a personal chat server, and can't for the life of me come up with a way to make a taskbar icon blink, like AIM's. Could anyone give me a hand on this?

Icon In Taskbar And Hand Icon
Hi fellas, couple small questions.

We've got a VB app that when you minimise it it sits in the tray with the nice logo/icon we have given it. Apart from Windows 2000 where we dont get the icon?? Anyone have any ideas?

Second question, We'd like to change the mouse cursor to a hand Icon, the one in the shape of a hand...now we think that that isn't available and may have to create our own cursor..but would like to know..

Thanks

Tony

No Form Icon With Taskbar Icon
My form has no visible icon, but when it is shown in the taskbar it has the default Visual Basic icon. How can I change the Visual Basic icon in the taskbar without adding an icon to my form?

Add Icon To Menu WITHOUT Making The Icon Looking Awful?!?
how to add a pic to a menu, without making the pic darker, and partly unrecognizeable.
and why can other apps display 16x16 pics?!(word or vb itself...)
because if you resize the default pics (eg save.bmp) then you cannot recognize the save picture anymore.

alex

ps: the f*** sorting with the f*** mshflexgrid DOESN'T WORK!!!!!

Making A Taskbar
How would i put all of the active windows, which would normally be shown in the windows taskbar, onto a toolbar? I want to give each window a checked button on the toolbar, so that i can maximise and minimie them.

Any ideas?

Taskbar Icon?
Hi, I was wondering how you could make a program which has an icon appear in the taskbar (located at the bottom left with the time) and then set it so a menu appears when clicking.

Thanks

No Icon In Taskbar
I have written a program and only won of the forms appear in the taskbar. I want them all to appear in the taskbar (one at a time tho) Thanks in Advance

Taskbar Icon
Is there a way to with a form that has border style set to none, and show in task bar set to true, have an icon in the task bar, not just text?

I have made sure that there was a icon set in the form icon property.

any ideas would be welcome, thanks.

Taskbar Icon
Is there a way to get my program to appear with a icon in the task bar to where when they close it still has a icon in the task bar so they can right click and make it re-appear or close it??

Taskbar- Icon
i have so many questions ..ha..

when i open my project, i want to add a icon down the bottom

of the screen(taskbar).Also when i right click the icon, pops a

menu.

how ? anyone knows? please teach me!


a novice

Getting MY Icon In Taskbar
When I minimize all forms the icon in the taskbar (systray?) looks like the vb form icon.

In the form's picture property I tried putting a bitmap then I tried an icon. However, the icon that I see when minimized is still the standard icon for a vb form.

How can I get MY icon the appear down there when I minimize?

Thanks.

Icon In Taskbar
I've some code I found somewhere to minimize my app to the system tray, and it works just fine.

But what I've noticed is that there is no taskbar item for it, even if it's not minimized.

Is that a result of the code? and is there any way to show it on the taskbar if it's not minimized?

Many thanks once again.


In the module

VB Code:
Declare Function Shell_NotifyIcon Lib "shell32.dll" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long 'These three constants specify what you want to doPublic Const NIM_ADD = &H0Public Const NIM_DELETE = &H2Public Const NIM_MODIFY = &H1 Public Const NIF_ICON = &H2Public Const NIF_MESSAGE = &H1Public Const NIF_TIP = &H4 Public Const WM_LBUTTONDBLCLK = &H203Public Const WM_LBUTTONDOWN = &H201Public Const WM_LBUTTONUP = &H202Public Const WM_MOUSEMOVE = &H200Public Const WM_RBUTTONDBLCLK = &H206Public Const WM_RBUTTONDOWN = &H204Public Const WM_RBUTTONUP = &H205 Type NOTIFYICONDATA        cbSize As Long        hwnd As Long        uID As Long        uFlags As Long        uCallbackMessage As Long        hIcon As Long        szTip As String * 64End Type Public IconData As NOTIFYICONDATA


In form load

VB Code:
With IconData.cbSize = Len(IconData).hIcon = Me.Icon.hwnd = Me.hwnd.szTip = "DailyText Viewer" & Chr(0).uCallbackMessage = WM_MOUSEMOVE.uFlags = NIF_ICON Or NIF_TIP Or NIF_MESSAGE.uID = vbNullEnd With


In form resize

VB Code:
If Me.WindowState = 1 Then   Call Shell_NotifyIcon(NIM_ADD, IconData)   Me.HideEnd If

Icon On Taskbar!
I have a VB6 app which uses 10 Forms. Apart from the start-up Form the other 9 Forms load when a menu item is clicked.

When the app starts & the start-up Form loads, the icon on the Taskbar is shown "depressed" meaning that my app is currently being used by the user. Now when I click a menu item & one of the 9 Forms gets loaded, I find that the icon in the Taskbar no longer remains "depressed" although the user is currently using my app wherein the focus is not on the start-up Form but on some other Form. If the loaded Form is closed i.e. the focus shifts back to the start-up Form, then the icon in the Taskbar again can be seen "depressed". This happens with a MsgBox as well.

So how do I ensure that the icon in the Taskbar always remains "depressed" when the user is working with my app (irrespective of whether the focus is on the start-up Form or on any of the other 9 Forms)?

Please note that all the Forms (of course, other than the start-up Form) are modal.

Taskbar Icon
I want to implement a 'hide' function in one of my programs, basically I would set the visible property of the form to false, so to make the form visible again I was thinking that I could put an icon on the taskbar that the user can click, will this work?

TaskBar Icon
Hello. I am using a form with no border, and I set the option to show the form in the taskbar. But the icon that I set does not appear in the taskbar, only the form name. How can I show the icon.

Icon 2 Taskbar
hy, whats wrong with this code??

i've got:

- 1form (Command1,Command2, Picture1[with icon]
- 1module



Formcode:


Code:
Public Sub CreateIcon()
Dim Tic As NOTIFYICONDATA
Tic.cbSize = Len(Tic)
Tic.hwnd = Picture1.hwnd
Tic.uID = 1&
Tic.uFlags = NIF_DOALL
Tic.uCallbackMessage = WM_MOUSEMOVE
Tic.hIcon = Picture1.Picture
Tic.szTip = "Visual Basic Demo Project" & Chr$(0)
erg = Shell_NotifyIcon(NIM_ADD, Tic)
End Sub

Public Sub DeleteIcon()
Dim Tic As NOTIFYICONDATA
Tic.cbSize = Len(Tic)
Tic.hwnd = Picture1.hwnd
Tic.uID = 1&
erg = Shell_NotifyIcon(NIM_DELETE, Tic)
End Sub

X = X Screen.TwipsPerPixelXSelect Case X
Case WM_LBUTTONDOWN
Caption = "Left Click"
Case WM_RBUTTONDOWN
Caption = "Right Click"
Case WM_MOUSEMOVE
Caption = "Move"
Case WM_LBUTTONDBLCLK
Caption = "Double Click"
End Select

Private Sub Command1_Click()
CreateIcon
End Sub

Private Sub Command2_Click()
DeleteIcon
End Sub

Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Case WM_LBUTTONDOWN
Caption = "Left Click"
Case WM_RBUTTONDOWN
Caption = "Right Click"
Case WM_MOUSEMOVE
Caption = "Move"
Case WM_LBUTTONDBLCLK
Caption = "Double Click"
End Select
End Sub





Modulecode:


Code:
"Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As _
NOTIFYICONDATA) As Long

Public Type NOTIFYICONDATA
cbSize As Long
hwnd As Long
uID As Long
uFlags As Long
uCallbackMessage As Long
hIcon As Long
szTip As String * 64
End Type

Public Const NIM_ADD = &H0
Public Const NIM_MODIFY = &H1
Public Const NIM_DELETE = &H2
Public Const NIF_MESSAGE = &H1
Public Const NIF_ICON = &H2
Public Const NIF_TIP = &H4

Public Const NIF_DOALL = NIF_MESSAGE Or NIF_ICON Or NIF_TIP

Public Const WM_MOUSEMOVE = &H200
Public Const WM_LBUTTONDBLCLK = &H203
Public Const WM_LBUTTONDOWN = &H201
Public Const WM_RBUTTONDOWN = &H204




the error was @ X = X Screen.TwipsPerPixelXSelect Case X -> syntax

thx Longbow

Icon Of Taskbar?
How do you make your program
have an icon on the taskbar
next to your App.title?

Icon In Taskbar
Right, I don't want my form to have a title bar/control box, but I DO want to see the Icon and prog name in the Taskbar. Someone already told me to use SetWindowText API which puts any text you want into the button in the taskbar (which works perfect loike), but how can I put an Icon in there too?

Yerrrall beautiful

Icon In Taskbar
Hi chaps, I'm going to have another go with this question.

I know there's an API that lets you set the text on the button in the taskbar (and you're all thinking, "hmm, yes, that'll be the Public Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" _
(ByVal hWnd As Long, ByVal lpString As String) As Long API if I'm not mistaken, and I very rarely am.)

So is there one that lets you set the ICON? What I have found in my meddling with a perfectly good (if somewhat bugged) vb6, is that if you turn off the control box, and set the caption of a form to nothing, when you run your prog it shows only an empty button in the task bar. Surely there is a civlised way around this?

Here's hoping....

Icon In Taskbar
hi there,
could anyone plz tell how to place an icon in a taskbar...


regards,
mcdee

No Icon In Taskbar?
How do I change my vb project so that when I run the program during design time, the programs icon appears in the taskbar.

Thanx

PLEASE HELP!!!icon In Taskbar
how would i get my applications icon to show in the taskbar along with the caption?

any help would be greatly appreciated.

thank you!

gkc



Edited by - gkcohen on 7/31/2003 9:13:25 AM

Icon In Taskbar But Not Alt-Tab
My progam has a Taskbar button available but stubbornly refuses to display in the Alt-Tab listing.

I think the relevant settings are:

Form.ShowinTaskbar = True
Form.BorderStyle= sizable
Form.Icon is default

using
OS is Win2000
VB4 -32

I have a few API calls for Transparency(SetLayeredWindowAttributes) and OnTop (by Matt Hart).
So I have systematically eliminated them as the problem by commenting the code, then compiling and running.

Is it known for FRMs or FRXs to become corrupted?

Thanks
Mike

Taskbar Icon...
I have a form which uses no border. Which means no titlebar, which in turns means that my application's icon is not displayed in the taskbar along with it's title while it is executing. The "Show in taskbar" portion in the form properties window is set to true. For some reason it just looks really tacky without the icon. Can anyone tell me of a method, API or otherwise to make my application show it's icon in the taskbar along with it's title? Thanx in advance...
GypsyPrince

Icon In The Taskbar
Hello Everybody
I have developed an application which needs to be run 24 hrs a day. The user wants that once the application is executed then , it should just show a icon in the task bar.
When the application is to be used it should show up when the icon is double clicked....other wise just run in the back ground.


Thanks in advance

Icon On TaskBar
I would like to know how to add an icon of my program to the taskbar. I want too, for a right click on this icon to open a pop up window with some options , for example to stop the program.
Thanks,
Richard

Making Applications Appear In The Taskbar
Hi all,

I have a large application that utilises various class structures and memory arrays. The program's entry point is Sub Main as there is some preprocessing etc. and the forms are loaded and shown from Sub Main and the garbage collection and de-initialisation is also in Sub Main.

Sounds simple so far, but as all my forms are being called Modally (Don't want to end the program before we get into it!!) there is nothing in the task bar to represent my app. Can somebody tell me the Quick n Easy way of registering a program for the task bar??

Thanks,

ZuluWarrior

Making The Taskbar Disappear!!!
How do you make the taskbar disappear and I also want the icons to disappear!!!

Icon In Taskbar / Borderstyle Set To 0
I know that this question has been asked repeatedly on this forum... but wherever I go the thread rarely had a solution.

So I have 1 form with borderstyle set to 0. It's shown in the taskbar already... last thing I want is that it shows an icon in it.

Now I've read that SetWindowLong or GetWindowLong should be used to acquire this... though on MSDN they keep their mouth shut 'bout the taskbar and it's icon when it comes to describing the different attributes.

Am I missing something, or is there another way?

Thx in advance,
Breezer

Edit--> Jut to clarify, I'm not asking 'bout the systray. Have tackled that one.

Icon In Taskbar W/o Titlebar?
I have a program with several non-modal forms. I would like to have an icon for the entire program in the taskbar at all times and yet avoid having a titlebar on the forms. Is there a way to do this?

Displaying Icon In Taskbar
how do you make programmes have like a icon in the taskbar?

Form Does Not Have Icon In Taskbar?
Can anyone think of a reason why my form doesn't show up in the Taskbar? It's there in the TaskManager.

I only have the problem with one form in the project.

This form also falls to the back all the time, and since it has no icon, it's very annoying to close all other windows in order to reaccess this form!

Destroy Taskbar Icon
Ok... here is a good question to bust your brains at...

I want to remove the Volume control icon from the taskbar.. you know the one... I was just going to close the window that it opens but i would prefer it if i could destroy the icon.. I am not sure how to identify it though... it has no 'GetWindowText' as such... any ideas?

Taskbar Icon On Startup
Hello,

I am using MBTray (3rd party OCX) to create a taskbar icon. The problem is that when the PC first boots up (the app is an NT service), the icon is not visible. I put in the form load, code to show the icon, however, this does not seem to work. I can not seem to figure out how I can get the icon to stay visible at all times as long as the desktop/taskbar are visible... Can someone help out?

Disappearing Taskbar Icon
Hello all,

Some users of an application I made experience a problem whereby the taskbar icon for the program disappears if they haven't used it for a while. The problem becomes evident when they try to re-launch it, because it gives them an error saying they can only have one instance open at once. This is because although the application isn't showing on the taskbar, it is visible when you press ctrl-alt-del and look in the applications tab on the task manager. The funny thing is, when you highlight the program on the task manager, the program's icon immediately re-appears on the task bar, and you can continue using it as normal.

Over the past couple of years, I have built many systems like this one, and have never experienced a problem such as this - so I am very puzzled at the moment. I've had a search, but couldn't come up with any possible causes, so would appreciate some pointers as to the possible cause.

Thanks for your time

James

Icon In Taskbar Question.
I've got a form that I have assigned an icon to, and thats fine.
When I ALT/TAB thru my open sessions I was expecting to see this icon displayed for my program, but I don't.
I get the standard white screen with a blue line across the top.
Am I missing a setting on the form somewhere ?
I've looked but can't see anything obvious.

TaskBar Right-Click Icon!
Usually when the icon of an open application is right-clicked in the TaskBar, a menu comes up with the menu items Minimize/Restore, Maximize, Move, Size & Close. Now I would like to add the Always On Top menu item to this menu. How do I do this?

Icon In Taskbar With No Borderstyle
Is there a way I can have my program's icon constantly visible with no borderstyle? I've tried changing the borderstyle to sizable temporarily when it is minimized then changing it back, but that only works every once and a while..

Showing An Icon In Taskbar
hello,
how can we show an icon with the caption of the form in the taskbar.

Taskbar Icon Menu
how do you make a menu come up on the icon on the taskbar when you right click

Changing The Icon In Taskbar
hello all, i have a small problem. im working on a chat program which communicates over a network. i want to disguise this program as an actual work-application (word, excel, ie, photoshop,etc.. ). i dont seem to be able to change the icon however (i have the icons, just cant seem to get the program to point to them).

the way it works is that when the program loads it generates a random number. if it is 0 then it will disguise itself as word, if it is 1 then it is photoshop..you get the picture. however, i can only seem to change the caption of the form, not the little icon. any ideas? Tnx!

Flashing Icon In Taskbar
is there a way to get your program to flash in the task bar like msn messenger does on a certain event?thanks!

Caption/Icon And Taskbar ?
Lets say I've got the VB default form1, I add a form icon, add a caption and select show in taskbar to true. I run it and get my currently blank form shown and chosen caption name of the form along with the form icon displayed on the taskbar.

So far so good.

Right, I'm bored with that grey form I want a trendy eye-catching form, easy, I load in the graphic and set borderstyle to 0 - None as I want it displayed completely instead of the form.

Now it looks cool, BUT,,,,, What's displayed down on the taskbar is the name/caption of my form but NOT the icon, where's it gone ?, How can I keep this graphic on my form AND still have borderstyle = 0 BUT keep my icon on the takbar ?

TIA

Right Click On Icon In Taskbar
I can add an icon in the taskbar, but how to pop-up something when a user right clicks on the icon

Taskbar Icon Without Control Box
I'm using a skinned form which doesn't have a Control Box or Caption. Is there a way to still show the icon and/or a caption in the taskbar ?
Thanks

Icon In Taskbar ( Not Systray )
I have a form with borderstyle = 0 (None), that is visibleintaskbar = true, but when I select an icon for the form, only the title of the form is showen in the taskbar.
How do I get the icon in the taskbar, while i still keep borderstyle = 0?

Taskbar Indicator Icon
Hi, is there a component which will display a flashing icon in the taskbar, according to new info in my db. Similar to ICQ or MSN messenger, telling me i have a new message. Short sample code would be greatly appreciated, thanks.

Displaying Taskbar Icon And More...
I just got a module to make a tool bar and i would like to kinda replace the original windows (2000 for me but would be cool if it could work on other but i wont care if it doesn't work for 9X) and i would like to be able to display the icons that the taskbar should be displaying and the task that are running

And also what would be the easiest way to make a Start button??

Copyright © 2005-08 www.BigResource.com, All rights reserved