[Tutorial]Minimize To Tray

Posts 1–5 of 5 · Page 1 of 1
[Tutorial]Minimize To Tray
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.

Code:
Private WithEvents ni As New NotifyIcon
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 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
Now it have a Face

Lets Add o if u Click it will re open your Form

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
Here Now you can Minimize to tray and Be able to show back your application be happy and enjoy.
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]
Quote Originally Posted by MintSlice View Post
Thanks topblast i was looking every where for this

This Post
http://www.mpgh.net/forum/33-visual-...mize-tray.html

This thread
http://www.mpgh.net/forum/33-visual-...t-traybar.html


Post 1 somewhere...
http://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
http://www.mpgh.net/forum/33-visual-...ml#post1524929

@ Mintslice
"VBHAXORS Multi Tool "

Please do not use that name, release it as something else, due to our group having the name already.
Thanks
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us