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:
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.Private Sub TaskBarIcon_BalloonClick(ByVal sender As Object) Handles TaskBarIcon.BalloonClick
Me.WindowState = FormWindowState.Normal
BringWindowToTop(Me.Handle)
End Sub
Do I need to Refresh my form, bringtofront, etc.? Any ideas?
Thanks
http://vbforums.com/showthread.php?t=460255




Reply With Quote