get the flashwindow api to flash form ?
-
Ive got a button on a form and am trying to get the flashwindow api to work with the form , however it seems i don't understand it! As i have never done an api call im not too surprised.!!
Declare Function FlashWindow Lib "user32" Alias "FlashWindow" (ByVal hwnd As Long, ByVal bInvert As Long) As Long Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click FlashWindow(1, True)'what are the arguments this call should use? End Sub no error when i click button, just nothing happens? Any help will be appreciated. -
Ive got a button on a form and am trying to get the flashwindow api to work with the form , however it seems i don't understand it! As i have never done an api call im not too surprised.!!
Declare Function FlashWindow Lib "user32" Alias "FlashWindow" (ByVal hwnd As Long, ByVal bInvert As Long) As Long Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click FlashWindow(1, True)'what are the arguments this call should use? End Sub no error when i click button, just nothing happens? Any help will be appreciated.MickYL wrote:
Ive got a button on a form and am trying to get the flashwindow api to work with the form , however it seems i don't understand it! As i have never done an api call im not too surprised.!! Declare Function FlashWindow Lib "user32" Alias "FlashWindow" (ByVal hwnd As Long, ByVal bInvert As Long) As Long Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click FlashWindow(1, True)'what are the arguments this call should use? End Sub
I did see the same question asked by someone else. It could be one or two days back. Just doing a forum search could help. :) I guess it should be
FlashWindow(Me.Handle, True) :~
Is it
Me.Handle
orMe.Hwnd
I am not sure please check anyway the first one takes the handle of the window to be flashed. In your case it is this window henceMe
.
Nibu thomas A Developer Programming tips[^] My site[^]
-
Ive got a button on a form and am trying to get the flashwindow api to work with the form , however it seems i don't understand it! As i have never done an api call im not too surprised.!!
Declare Function FlashWindow Lib "user32" Alias "FlashWindow" (ByVal hwnd As Long, ByVal bInvert As Long) As Long Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click FlashWindow(1, True)'what are the arguments this call should use? End Sub no error when i click button, just nothing happens? Any help will be appreciated. -
MickYL wrote:
Ive got a button on a form and am trying to get the flashwindow api to work with the form , however it seems i don't understand it! As i have never done an api call im not too surprised.!! Declare Function FlashWindow Lib "user32" Alias "FlashWindow" (ByVal hwnd As Long, ByVal bInvert As Long) As Long Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click FlashWindow(1, True)'what are the arguments this call should use? End Sub
I did see the same question asked by someone else. It could be one or two days back. Just doing a forum search could help. :) I guess it should be
FlashWindow(Me.Handle, True) :~
Is it
Me.Handle
orMe.Hwnd
I am not sure please check anyway the first one takes the handle of the window to be flashed. In your case it is this window henceMe
.
Nibu thomas A Developer Programming tips[^] My site[^]