Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MaskedTextBox があり、ボックスの末尾 (または先頭) に IBeam カーソルを配置したいと考えています。
例:
-ユーザーは MaskedTextBox をクリックして入力を開始しましたが、ボックスの中央をクリックしたため「バックスペース」する必要があります。カーソルを自動的に左/右に移動するにはどうすればよいですか?
MaskedTextBox "Cod IBGE" は "000" (3 つの数字が必要)
MaskedTextBox に「Enter」イベントを追加してから、コードの下にホームを設定する必要があります。
mtb.SelStart = 0; mtb.SelLength = 0;