我试图使用窗体上的热键隐藏/显示一个文本框,试了很多办法和阅读本thread后,我这样做:Windows窗体热键
If Control.ModifierKeys = Keys.B Then
If TextBox1.Visible = True Then
TextBox1.Visible = False
Else
TextBox1.Visible = True
End If
和:
If Control.ModifierKeys = Keys.B Then
If TextBox1.Visible = True Then
TextBox1.Hide()
Else
TextBox1.Hide()
End If
End If
但仍然没有工作..帮助我,请
“Control.ModifierKeys”如何等于'Keys.B'?修饰键是Ctrl,Shift和Alt。 – jmcilhinney