In my C # WinForms program, I have a form on which there is only one Button control. By default, this Button control gains focus on the form. But I do not want Button to always focus.
Is there a solution, even one that would require an unmanaged API call?
In the form, Loadyou can set the focus to some other control.
Load
If you do not want the control to receive focus from the keyboard, you can also set its property TabStopto false.
TabStop
, , TabIndex. TabIndex , , tab. TabIndex 0, .
TabIndex
tab
TabIndex TabStop MSDN.
button1.TabStop = false;
Source: https://habr.com/ru/post/1784663/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1784658/measuring-time-the-vehicle-takes-to-accelerate-in-iphone&usg=ALkJrhgdjsViY7Lt-P0ii0003_FUB5A62QPHP Email Importer (из CSV, Gmail, Outlook и т.д.) - importCan I save a video uploaded via MPMoviePlayerViewController or MPMoviePlayerController? - ios4VNC control for WPF application - wpfIs it possible to check if cookies are allowed in php without reloading the page? - phpHow does Amazon 3G Work global - 3gC # Data Access GetAll () methods with many parameters - c #Как исключить некоторые классы из поколения rdoc и ri во время установки gem в рубине? - rubyIs there a way to save and send HTTP requests? - httpSmall HTTP server using java? - javaAll Articles