矢印キーでさまざまなタブをスクロールできないようにする必要があります。誰かがこれを行う方法を知っていますか?
3741 次
2 に答える
0
次のコードで問題を修正しました
string tempstring = e.KeyValue.ToString();
if (tempstring == "37" || tempstring == "38" || tempstring == "39" || tempstring == "40")
{
e.Handled = true;
}
tabControl1_KeyDown(object sender, KeyEventArgs e) メソッド内に配置しました。
于 2008-12-11T21:59:53.267 に答える
-1
そのコントロールのイベント「KeyPress」をトラップできると思います
次に、あなたが持っているハンドルに
System::Windows::Forms::KeyPressEventArgs^ e
次に、チェックします
if (e->KeyChar == [find the number representing the arrow key])
e->Handled = true; // Meaning that no one will receive it afterwards
于 2008-12-10T23:46:15.393 に答える