Hello, I am relatively new to using VB.net and would be grateful if someone could help me.
I am working on a form which dynamically creates tab panels on a tab control. Essentially, there is a numeric_updown object which determines how many tab panels are to be created i.e. user enters 3, 3 tab panels appear.
I have managed to get this part working, but am having trouble with assigning hotkeys to the tab panels. I need to use the keypress or keydown event handler to allow the user to press 'Ctrl' plus a number on the keyboard which correlates to the tab panel they wish to view. So when the user presses Ctrl and the number 3 for example, the 3rd tab come into focus on the form.
I would be extremely grateful for any pointers or tips that anyone could give me.
Thanks
I am working on a form which dynamically creates tab panels on a tab control. Essentially, there is a numeric_updown object which determines how many tab panels are to be created i.e. user enters 3, 3 tab panels appear.
I have managed to get this part working, but am having trouble with assigning hotkeys to the tab panels. I need to use the keypress or keydown event handler to allow the user to press 'Ctrl' plus a number on the keyboard which correlates to the tab panel they wish to view. So when the user presses Ctrl and the number 3 for example, the 3rd tab come into focus on the form.
I would be extremely grateful for any pointers or tips that anyone could give me.
Thanks