com >> Application to System Tray

by Dixon » Sat, 28 Jan 2006 14:55:14 GMT

Hai

Im a new bie

I need the code to display my application in the system tray and not in
the task bar when it is in the system tray......

Thanks in advance

http://spaces.msn.com/vijaydixon/



com >> Application to System Tray

by MikeD » Sat, 28 Jan 2006 22:01:06 GMT







What version of VB are you using? You should always mention this, but since
you crossposted to a dotnet newsgroup (even though it's not a valid
newsgroup), it's particularly relevant.

Assuming VB6 (or VB4 or VB5), you would use the Shell_NotifyIcon API
function. If you search the web or newsgroups (try doing this at
www.google.com), you should find many code examples. One word or warning, if
ANY of the examples you find use the WM_MOUSEMOVE hack, ignore that example.
You can easily tell if this hack is used by just looking at the code to see
if WM_MOUSEMOVE is assigned to the uCallbackMessage member of the
NOTIFYICONDATA structure. Look for example code that uses subclassing.

If you're using VB.NET, look up the NotifyIcon class of the .NET Framework.

--
Mike
Microsoft MVP Visual Basic





Similar Threads

1. Application To System Tray and then restore it again

2. Application in system tray - Visual Basic/VB

3. Activate application in system tray

Hi

I have an external application running in the background.
When it starts it adds an icon to the notification area (system tray).
The application monitors some things and show messages.
The icon will start to blink if there is a new messages, so the user
can double click the icon and the main window with the messages is
shown.
The problem is that this application runs on a production machine on
which all statusbars are made inaccessible to the user.

I thought of writing an application or script that pops up the
application when the use click on it, and place that on the desktop
I can use C#, VB/NET, VB6, VBscript,...

I already found that the process running in the background don't have a
window handle.

Anybody knows a way how to do this...

4. Minimize application to system tray

5. Remove Express Edition Tray icon from System Tray,...

6. How to refresh system tray when application closes? - VB.Net

7. maximize my application from the system tray

Hello,
       I have an icon in my system tray and I wish to call various functions 
from withing the tray which involve the application been maximized.  The 
following event is on the system tray icon

  Dim mouse As Cursor
            Dim Myprojectdet As New frmProjectDetails
            If SetupContextMenu(cmnuSysTray, "SystemTray", 
Myprojectdet.ImgJobDetails) Then
                cmnuSysTray.TrackPopup(New 
System.Drawing.Point(mouse.Position.X, mouse.Position.Y))
            End If

The context menu displays the correct menu options but how to I maximize my 
main form FrmMain from the this event.


8. System Tray Application - VB.Net