Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
VB.NET
VB.NET General Discussion
KeyDown Event on another Window
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="ThomasT, post: 127876, member: 29919"] Create a timer and use this function and import GetAsyncKeyState [CODE] Function GetKeyDown(ByVal Vkey As Int32) As Boolean If GetAsyncKeyState(Vkey) = -32767 Then Return True Else Return False End If End Function[/CODE] then in your timer.tick event [CODE]if GetKeyDown(keys.f1) = true and MusicOpen = false then MusicOpen = True 'code to play your music end if[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
VB.NET
VB.NET General Discussion
KeyDown Event on another Window
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom