Computing.Net > Forums > Programming > how to raise event on F8 click

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

how to raise event on F8 click

Reply to Message Icon

Name: darko010101
Date: September 2, 2009 at 08:17:16 Pacific
OS: Windows XP
CPU/Ram: 2048 mb
Subcategory: C/C++
Comment:

hi
i want to raise an event on F8 click in visual basic 9
thank`s in advance



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: September 2, 2009 at 09:18:21 Pacific
Reply:

Raise what event, and where?


0

Response Number 2
Name: darko010101
Date: September 3, 2009 at 04:11:31 Pacific
Reply:

well
when i click f8 it should hide the current form and to show form3


0

Response Number 3
Name: Razor2.3
Date: September 3, 2009 at 05:37:07 Pacific
Reply:

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.


2

Response Number 4
Name: darko010101
Date: September 3, 2009 at 08:18:41 Pacific
Reply:

nope...
can you write the code for me???
help appreciated


0

Response Number 5
Name: darko010101
Date: September 3, 2009 at 08:56:58 Pacific
Reply:

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


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

changing the listbox high... Append new text onto file...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: how to raise event on F8 click

How to run *.aspx on a website (ASP www.computing.net/answers/programming/how-to-run-aspx-on-a-website-asp/7690.html

How to install PHP on Win XP Home? www.computing.net/answers/programming/how-to-install-php-on-win-xp-home/11579.html

VB 6.0 - how to add hyperlinks?? www.computing.net/answers/programming/vb-60-how-to-add-hyperlinks/7265.html