Results 1 to 3 of 3

Thread: [RESOLVED] BringWindowToTop not Bringing Window To Top

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

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: BringWindowToTop not Bringing Window To Top

    Quote Originally Posted by 18experience
    Sorry, I know this is sort of double posting, but I couldn't get anyone to move my thread.
    Unless your thread is blatantly in the wrong forum, you need to specifically ask a moderator - like everyone else, we don't read every single post on the forums "just in case" there is something directed at us in it.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Re: BringWindowToTop not Bringing Window To Top

    I specifically asked someone. Sorry about that. I always post in that other forum and it wasn't until I was well into it that I discovered it would be some API business.
    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