Results 1 to 9 of 9

Thread: [RESOLVED] Click on NotifyIcon, bring my program to front

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Resolved [RESOLVED] Click on NotifyIcon, bring my program to front

    Hello,

    I have a Notify Icon on the main form of my application. It periodically checks for Alerts (as we call them) and notifies the user if they have new Alerts (very similar to Outlook telling you that you have a new e-mail). When the user clicks on the Notify Icon, it brings the Alerts module to the front if an instance of it is open, and opens a new instance if there is not one.

    But, I would also like for my program to come to the front as if the user clicked on it in the taskbar.

    Does this require some sort of API call?
    I have tried these:
    Me.WindowState = FormWindowState.Normal
    Me.Focus()
    Me.BringToFront()

    but none have worked.

    Any ideas?
    Thanks
    Last edited by 18experience; Mar 29th, 2007 at 08:16 AM.
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

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