Results 1 to 5 of 5
  1. #1
    nathanael890's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    158
    Reputation
    13
    Thanks
    46
    My Mood
    Bored

    Post [Question]About Traybar

    How Could I Put My Program At The Traybar Icons Instead At The Taskbar???

    I'm Using Visual Basic 8...

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Using a notifyicon and a contextmenustrip..

    on form_load

    Me.ShowInTaskbar = False
    NotifyIcon1.ContextMenuStrip = ContextMenuStrip1

    You also have to set an icon for the notifyicon, else you won't be able to see it.



  3. #3
    KingJamesRulz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    18
    Reputation
    9
    Thanks
    1
    My Mood
    Mellow
    put in you program ShowInTaskBar = True
    there you go

  4. #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
    Form Load (Set Icon)
    Code:
     Me.NotifyIcon1.Icon = Me.Icon

    Form Load, Set it true

    Code:
    Me.NotifyIcon1.Visible = true

    VB Syntax for Minimizing to System Tray

    Code:
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            NotifyIcon1.Visible = False
        End Sub
     
        Private Sub NotifyIcon1_MouseDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseDoubleClick
            Try
                Me.Show()
                Me.WindowState = FormWindowState.Normal
                NotifyIcon1.Visible = False
     
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try
        End Sub
     
        Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
            Try
                If Me.WindowState = FormWindowState.Minimized Then
                    Me.WindowState = FormWindowState.Minimized
                    NotifyIcon1.Visible = True
                    Me.Hide()
                End If
     
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try
        End Sub

    Show Balloon Tip
    (use on minimize, but can be adjusted for anything

    Code:
    notifyIcon1.ShowBalloonTip(3000, "Your App", ("Application has not closed" & DirectCast((13), [Char]) & "You can access it from System tray") + DirectCast((13), [Char]) & "Right click the Icon to exit.", ToolTipIcon . info
    Last edited by NextGen1; 02-07-2010 at 04:01 PM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




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

    nathanael890 (02-09-2010)

  6. #5
    nathanael890's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    158
    Reputation
    13
    Thanks
    46
    My Mood
    Bored
    Thank You NextGen1... [1/10 For Me To Support You!!]

Similar Threads

  1. Questions about Torrents.
    By SadisticGrin in forum Hardware & Software Support
    Replies: 19
    Last Post: 12-20-2006, 03:34 PM
  2. Question About Invisible Hack
    By wafflele in forum WarRock - International Hacks
    Replies: 14
    Last Post: 08-06-2006, 12:40 AM
  3. A question about NFV2
    By vomer in forum WarRock - International Hacks
    Replies: 19
    Last Post: 08-02-2006, 06:02 PM
  4. Questions about making colored models
    By zelda803 in forum WarRock - International Hacks
    Replies: 2
    Last Post: 02-04-2006, 06:36 PM
  5. question about zoom
    By yocinfluence in forum WarRock - International Hacks
    Replies: 4
    Last Post: 01-26-2006, 10:12 PM