My code:
My problem:Code:Option Strict On Option Explicit On Public Class Form1 Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load 'Get the settings Label1.Text = String.Format("Hotkey1: {0}{1}Hotkey2:{2}", My.Settings.hotkey_combo1.ToString, Environment.NewLine, My.Settings.hotkey_combo2.ToString) 'Set up the combobox's properites With ComboBox1 .Items.AddRange(New Object() {Keys.PrintScreen, Keys.F12}) End With 'Set up the combobox's properites With ComboBox2 .Items.AddRange(New Object() {Keys.ControlKey, Keys.ShiftKey}) End With End Sub Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click My.Settings.hotkey_combo1 = DirectCast(ComboBox1.SelectedItem, Keys) My.Settings.hotkey_combo2 = DirectCast(ComboBox2.SelectedItem, Keys) End Sub End Class
How can i add ({Keys.Control + keys.t, Keys.Shift})
When i press control + t to do something, not only control.Code:.Items.AddRange(New Object() {Keys.ControlKey + keys.t, Keys.ShiftKey})
When i do this "Keys.Control + keys.t" everything is ok no error, but vb add value of control and value of t
when i set + vb add this 2 value, when i set * vb multiply this 2 value and also i was try with 'add', 'or' but nothing
But when i have only one button everything is ok, but when i have combination of 2 buttons (controlkey + t) that works to but vb doesn't recognize that as hotkey or let's say button.
Thank you in advance!





Reply With Quote
