Visual Basic Development Bookmark and Share   
 Home > Visual Basic Language > How do I send an application to the system tray with Visual Basic in Visual Studio 2008 Professional?
 

How do I send an application to the system tray with Visual Basic in Visual Studio 2008 Professional?

I have Visual Studio 2008 Professional and I'm trying to make it so I can click a button to send the application to the System Tray and then click the icon in the System Tray to make the application come back.

Can anyone provide me a method or sample code to do this?
TULOA  Saturday, September 26, 2009 4:57 AM
Use notifyIcon control, take a look at the sample tutorials below.
http://www.startvbdotnet.com/controls/notifyicon.aspx
http://www.codeproject.com/KB/dotnet/notifyiconcontrol20.aspx

The second links explained it in full detail but the code is C#

kaymaf


I hope this helps, if that is what you want, just mark it as answer so that we can move on
  • Marked As Answer byTULOA Saturday, September 26, 2009 5:30 PM
  •  
kaymaf  Saturday, September 26, 2009 1:22 PM
Tuloa,

I saw that the documentation on MSDN about this one is realy very bad.

bottomForm.WindowState = FormWindowState.Maximized


Success
Cor
Cor Ligthert  Saturday, September 26, 2009 6:36 AM
Tuloa,

I saw that the documentation on MSDN about this one is realy very bad.

bottomForm.WindowState = FormWindowState.Maximized


Success
Cor

This isnt quite what I'm looking for. Im looking to make the application im making go to the system tray but clicking a button on the form. So it goes to the System Tray somewhat like BitTorrent or any other application like that.

This way the Application can stay running yet hidden.
TULOA  Saturday, September 26, 2009 7:05 AM
Aside from sorta cheating by using the Tray Sample and editing the interface to suit my needs I did get it to go to the system tray. This application is being used to keep my bluetooth headset active.

I would still like to know how this is done so I can do it on my own in the future. I shall await any and all replies.
TULOA  Saturday, September 26, 2009 8:12 AM
Use notifyIcon control, take a look at the sample tutorials below.
http://www.startvbdotnet.com/controls/notifyicon.aspx
http://www.codeproject.com/KB/dotnet/notifyiconcontrol20.aspx

The second links explained it in full detail but the code is C#

kaymaf


I hope this helps, if that is what you want, just mark it as answer so that we can move on
  • Marked As Answer byTULOA Saturday, September 26, 2009 5:30 PM
  •  
kaymaf  Saturday, September 26, 2009 1:22 PM
Use notifyIcon control, take a look at the sample tutorials below.
http://www.startvbdotnet.com/controls/notifyicon.aspx
http://www.codeproject.com/KB/dotnet/notifyiconcontrol20.aspx

The second links explained it in full detail but the code is C#

kaymaf


I hope this helps, if that is what you want, just mark it as answer so that we can move on

I suppose it will have to do even though I am still somewhat lost.
TULOA  Saturday, September 26, 2009 5:30 PM
That's really all it takes.
Create a NotifyIcon object, set it with the menus and etc you'd like to see, and then hide or close any opened forms.
JasenGibson  Saturday, September 26, 2009 7:51 PM
That's really all it takes.
Create a NotifyIcon object, set it with the menus and etc you'd like to see, and then hide or close any opened forms.

Ok I will give it a shot again with a new app to test to make sure I can do it.
TULOA  Saturday, September 26, 2009 8:43 PM
That's really all it takes.
Create a NotifyIcon object, set it with the menus and etc you'd like to see, and then hide or close any opened forms.

Ok I will give it a shot again with a new app to test to make sure I can do it.

I cant believe they just didnt come out and Say add a NotifyIcon from the All Windows Forms list and then set it up from there.

Now I just look plain stupid lol.
TULOA  Saturday, September 26, 2009 8:51 PM

You can use google to search for other answers

Custom Search

More Threads

• I cannot delete a Newly added record CONCURRENCY VIOLATION
• MS Project 2003
• how to make a string in a text be selected?
• which DOTNET control i need to use to replace the adodc control in vb6.0?
• Visual Basic := Syntax
• Visual Basic 6 Serial Port Problem
• VB2010: Which compiler errors can be detected out by VB compiler/interpreter?
• How to Open TapPages ?
• Why the Filtering Property doesn't work on a user control
• access / vb.net issues