2 Replies - 648 Views - Last Post: 31 December 2012 - 02:58 AM Rate Topic: -----

#1 Vishal1419  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 141
  • Joined: 19-May 12

About KeyPress in vb.net

Posted 29 December 2012 - 01:43 PM

How do we know if any key is pressed twice by the user

For e.g.
If user presses "A" key twice i.e. "AA"
then I want a messagebox to appear

And also I want to know that which key combination (one after the other) is pressed by the user

For e.g.
If user presses "K" key followed by "H" key
Then messagebox must appear

Actually I am trying to write some characters in another language based on user input in vb.net

Thanks in advance.

Is This A Good Question/Topic? 0
  • +

Replies To: About KeyPress in vb.net

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9044
  • View blog
  • Posts: 33,951
  • Joined: 12-June 08

Re: About KeyPress in vb.net

Posted 29 December 2012 - 01:44 PM

I would just store the key presses in a string.. after so many clear out the string or if a match hits clear out the string.
Was This Post Helpful? 1
  • +
  • -

#3 Vishal1419  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 141
  • Joined: 19-May 12

Re: About KeyPress in vb.net

Posted 31 December 2012 - 02:58 AM

thank you
I have just stored the keycode in a string and it works like a charm
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1