HotKeys with Options

  • (2 Pages)
  • +
  • 1
  • 2

23 Replies - 1124 Views - Last Post: 12 August 2013 - 08:53 AM Rate Topic: -----

#16 Neph1x  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 110
  • Joined: 19-November 11

Re: HotKeys with Options

Posted 09 August 2013 - 12:11 PM

hmm, then teach me otherwise .. I'm always willing to learn something new or something better!
Anyway, I'm still learning VB.

Give me some examples, advise me, correct me ... that I appreciate the most.

Thank you.

This post has been edited by Neph1x: 09 August 2013 - 12:12 PM

Was This Post Helpful? 0
  • +
  • -

#17 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8962
  • View blog
  • Posts: 33,586
  • Joined: 12-June 08

Re: HotKeys with Options

Posted 09 August 2013 - 12:20 PM

... I am asking you *WHY* you went that route.
Was This Post Helpful? 0
  • +
  • -

#18 Neph1x  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 110
  • Joined: 19-November 11

Re: HotKeys with Options

Posted 09 August 2013 - 12:51 PM

Which route?
Was This Post Helpful? 0
  • +
  • -

#19 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8962
  • View blog
  • Posts: 33,586
  • Joined: 12-June 08

Re: HotKeys with Options

Posted 09 August 2013 - 12:53 PM

http://www.dreaminco...ost__p__1886735
Was This Post Helpful? 0
  • +
  • -

#20 Neph1x  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 110
  • Joined: 19-November 11

Re: HotKeys with Options

Posted 09 August 2013 - 01:00 PM

Timer was my idea, probably bad idea...
And this "Private Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Integer) As Boolean" is youtube idea.
Was This Post Helpful? 0
  • +
  • -

#21 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8962
  • View blog
  • Posts: 33,586
  • Joined: 12-June 08

Re: HotKeys with Options

Posted 09 August 2013 - 01:20 PM

Okay dokey.. so go your code behind. You'll notice the tab where the file's name is in the top left? Right under that tab are two drop down boxes. The left one is your control list, and the right one is all possible events that you can attach to that control.

Say you have a textbox.. you can drag the left box down to the textbox name and then the right one you can drag down to the 'key down' event.

VS should create the event handler method and you are off the races. This method is called every time that control's keypress is triggered. You can examine what was pressed by the 'keyeventargs' object (typcially called 'e').

If you are not familiar with this whole events concept then I woudl highly suggest stopping and looking up tutorials here and on MSDN.
Was This Post Helpful? 0
  • +
  • -

#22 Neph1x  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 110
  • Joined: 19-November 11

Re: HotKeys with Options

Posted 12 August 2013 - 04:05 AM

I'm familiar with that, but i don't know how that can help me, because i do not use textbox for hotkey
Was This Post Helpful? 0
  • +
  • -

#23 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8962
  • View blog
  • Posts: 33,586
  • Joined: 12-June 08

Re: HotKeys with Options

Posted 12 August 2013 - 06:45 AM

Look through the tutorials and MSDN about 'events'. They are a seriously large part of app dev programming.
Was This Post Helpful? 0
  • +
  • -

#24 Neph1x  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 110
  • Joined: 19-November 11

Re: HotKeys with Options

Posted 12 August 2013 - 08:53 AM

Okey, Thank you! :rockon:
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2