|
-
Mar 28th, 2007, 02:54 PM
#1
Thread Starter
Fanatic Member
[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..."
-
Mar 28th, 2007, 03:30 PM
#2
Re: BringWindowToTop not Bringing Window To Top
 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.
-
Mar 28th, 2007, 04:20 PM
#3
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|