how to raise event on F8 click

September 2, 2009 at 08:17:16
Specs: Windows XP, 2048 mb
hi
i want to raise an event on F8 click in visual basic 9
thank`s in advance

See More: how to raise event on F8 click

Report •


#1
September 2, 2009 at 09:18:21
Raise what event, and where?

Report •

#2
September 3, 2009 at 04:11:31
well
when i click f8 it should hide the current form and to show form3

Report •

#3
September 3, 2009 at 05:37:07
Unfortunately, I'm away from my box with VS installed on it, so I can't provide a code example. The logic, however, is pretty simple:
- Make a KeyPressDown event handler for the form. Include whatever logic you want.
- Add that event handler to every control on that form. I suggest a For Each loop.

Report •

Related Solutions

#4
September 3, 2009 at 08:18:41
nope...
can you write the code for me???
help appreciated

Report •

#5
September 3, 2009 at 08:56:58
i made it...

Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
Select e.KeyCode
Case Keys.F8
Button1.PerformClick()
End Select
End Sub

thanks, expert


Report •


Ask Question