locked
Assign Multiple Hotkeys and Save the Hotkeys for use it later

    问题

  • Thanks for your guidance it helped. Now I need to know how to assign multiple hotkeys for doing different task in an application kindly provide me a working VB.net code example..

    I want to assign hotkeys like CTRL+AL+SHIFT+ any char from keyboard at runtime at want to this key to be registered again whenever the application starts and retain all the previously assigned keys in a list box for future use.

    I shall be very thankful to you for this.

    2012年1月4日 15:11

全部回复

  • I want to assign hotkeys like CTRL+AL+SHIFT+ any char from keyboard at runtime and want this key to be registered again whenever the application starts and retain all the previously assigned keys in a list box for future use.

    I shall be very thankful to you for this.

    2012年1月4日 15:12
  • Hi Shifty,

    Thanks for your post.

    How to register a hot key is a FAQ. Please refer to” FAQ: How do I register a hotkey in VB.NET? ”: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/c1a24688-d844-4adc-9d85-416a7158c6ba/

     How to store the information you also can refer to:
    My.Settings Object (Visual Basic): http://msdn.microsoft.com/en-us/library/saa62613.aspx

    Use XML to store the data: XmlSerializer Class: http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.aspx

    I’m afraid that this issue is too general for us to help you.  You can start coding with the help of these links. If you have any additional questions, please provide more specific information.


    Mark Liu-lxf [MSFT]
    MSDN Community Support | Feedback to us
    2012年1月6日 8:36
  • Hi Shifty,

    We haven’t heard from you for a while. I’d like to mark my reply as answer firstly. If you have any additional questions, you also can unmark the replay and post your question here. 

    Sorry for any inconvenience and have a nice day.


    Mark Liu-lxf [MSFT]
    MSDN Community Support | Feedback to us
    2012年1月13日 9:13
  • I want to assign multiple hot keys at run time as many as one wants and want these keys to be saved in a list box for registering again whenever the application starts, and user should be able to just press any of its desired key combinations and the respective work should be done accordingly.
    2012年1月26日 8:43