Results 1 to 5 of 5
  1. #1
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool

    [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.
    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

  2. The Following 4 Users Say Thank You to topblast For This Useful Post:

    hack2learn (05-21-2011),MintSlice (03-29-2010),Tony Stark` (02-09-2011),[B]oss (01-27-2012)

  3. #2
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    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.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  4. #3
    MintSlice's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    52
    Reputation
    10
    Thanks
    2
    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.

  5. #4
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Quote Originally Posted by MintSlice View Post
    Thanks topblast i was looking every where for this

    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.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  6. The Following User Says Thank You to NextGen1 For This Useful Post:

    MintSlice (03-29-2010)

  7. #5
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    @ Mintslice
    "VBHAXORS Multi Tool "

    Please do not use that name, release it as something else, due to our group having the name already.
    Thanks

Similar Threads

  1. [Help] Minimize to tray
    By KissU in forum C++/C Programming
    Replies: 3
    Last Post: 10-10-2011, 03:56 PM
  2. [Tutorial]Open and Close cd tray
    By XxTylerxX in forum C# Programming
    Replies: 1
    Last Post: 05-17-2010, 05:15 PM
  3. Minimize to Tray
    By ac1d_buRn in forum Visual Basic Programming
    Replies: 6
    Last Post: 10-28-2009, 08:32 AM
  4. Warrock Hack - Tutorial
    By Dave84311 in forum WarRock - International Hacks
    Replies: 667
    Last Post: 10-09-2007, 10:10 AM
  5. Photoshop Tutorials
    By Dave84311 in forum Art & Graphic Design
    Replies: 3
    Last Post: 12-31-2005, 07:21 AM