Results 1 to 3 of 3

Thread: [RESOLVED] BringWindowToTop not Bringing Window To Top

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Resolved [RESOLVED] BringWindowToTop not Bringing Window To Top

    Sorry, I know this is sort of double posting, but I couldn't get anyone to move my thread. I can't get BringWindowToTop to work. I have little experience with APIs.

    I declare it at the top like this:
    Private Declare Function BringWindowToTop Lib "user32" (ByVal hwnd As IntPtr) As IntPtr

    And use it like this:
    Private Sub TaskBarIcon_BalloonClick(ByVal sender As Object) Handles TaskBarIcon.BalloonClick
    Me.WindowState = FormWindowState.Normal
    BringWindowToTop(Me.Handle)
    End Sub
    If you look at my previous post, you will see a screenshot where I clicked the Balloon, it highlighted my form as if it were selected, but it left Windows Explorer in front of my form.

    Do I need to Refresh my form, bringtofront, etc.? Any ideas?
    Thanks

    http://vbforums.com/showthread.php?t=460255
    Last edited by 18experience; Mar 28th, 2007 at 04:21 PM.
    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