hack2learn (05-21-2011),MintSlice (03-29-2010),Tony Stark` (02-09-2011),[B]oss (01-27-2012)
Hello Guy|Gals,
This tutorial is to tell you how to minimize to tray. You can be using it for almost anything and i cant care less so lets start.
ok now we have out Notify Icon with mostly is a tray. We need now to add the icon to your tray and the text it will say.Code:Private WithEvents ni As New NotifyIcon
Now it have a FaceCode:Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ni.Icon = Me.Icon() ni.Text = "Your Text Go Here" End Sub
Lets Add o if u Click it will re open your Form
Here Now you can Minimize to tray and Be able to show back your application be happy and enjoy.Code:Private Sub ni_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ni.DoubleClick If Me.Visible = True Then Me.Hide() Else Me.Show() End If End Sub
Last edited by topblast; 03-30-2010 at 12:43 PM.
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development
hack2learn (05-21-2011),MintSlice (03-29-2010),Tony Stark` (02-09-2011),[B]oss (01-27-2012)
Again, Something else that is already here, and in the snippets vault, but thanks for sharing.
(not that I mind doubles, because sometimes multiples can be
helpful if they are "different" methods")
But , Look in the tutorials thread, The snippets thread , and search and be sure you aren't just reposting the same tuts
If everyone creates the same tut, we will be flooded with hundreds of the same thing.
Snippets Vault is loaded, so is the tutorials section, so be sure to check there first, then search.
Thanks.
Thanks topblast i was looking every where for this
// edit : i get errors
[php]
Error 1 Handles clause requires a WithEvents variable defined in the containing type or one of its base types. C:\Users\I Love Amanda\Documents\Visual Studio 2008\Projects\VBHAXORS Multi Tool\VBHAXORS Multi Tool\TSProductions Tapper.vb 43 100 VBHAXORS Multi Tool
Error 2 Name 'ni' is not declared. C:\Users\I Love Amanda\Documents\Visual Studio 2008\Projects\VBHAXORS Multi Tool\VBHAXORS Multi Tool\TSProductions Tapper.vb 53 9 VBHAXORS Multi Tool
Error 3 Name 'ni' is not declared. C:\Users\I Love Amanda\Documents\Visual Studio 2008\Projects\VBHAXORS Multi Tool\VBHAXORS Multi Tool\TSProductions Tapper.vb 54 9 VBHAXORS Multi Tool
[/php]
Last edited by MintSlice; 03-29-2010 at 10:53 PM.
This Post
https://www.mpgh.net/forum/33-visual-...mize-tray.html
This thread
https://www.mpgh.net/forum/33-visual-...t-traybar.html
Post 1 somewhere...
https://www.mpgh.net/forum/33-visual-...ets-vault.html
and a few more, Didn't look hard enouph?
@ errors
ni = NotifyIcon
Look here, it includes bubble pop ups
https://www.mpgh.net/forum/33-visual-...ml#post1524929
Last edited by NextGen1; 03-29-2010 at 11:00 PM.
MintSlice (03-29-2010)
@ Mintslice
"VBHAXORS Multi Tool "
Please do not use that name, release it as something else, due to our group having the name already.
Thanks