Results 1 to 3 of 3

Thread: Notify Icon

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Posts
    331

    Notify Icon

    I am guessing you are supposed to use the NotifyIcon as a icon in the system tray. So I set mine to when it is double clicked
    VB Code:
    1. Dim que As New Form1
    2.         If que.WindowState = FormWindowState.Minimized Then
    3.             que.WindowState = FormWindowState.Maximized
    4.         End If
    All that code does is add another icon in the tray. Nothing more. How do I fix?
    Katya Chehova is best!

  2. #2
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    Re: Notify Icon

    First of all theres a topic related to this which was created yesterday.

    Heres how you set up the icon:
    que.Show
    que.Windowstate = Minimized
    que.Hide
    Set the Icon

    Now you should have a new form which instantly minimizes and hides thus you cant ALT+Tab to the new form.


    To access the form I would put a ContextMenu

  3. #3
    Frenzied Member Phill64's Avatar
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    1,201

    Re: Notify Icon

    *cough* *cough*
    VB Code:
    1. Dim que As New Form1

    what's that doing there
    you do realise the "new" keyword means you are creating a "new" form of type Form1... not the existing one.

    all you need to do is drag&drop a notify icon onto your form and on the doubleclick event add "Me.Show"

    I also recommend you read about using forms in .NET http://www.devcity.net/Articles/94/1/multipleforms.aspx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width