إشعار
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تسجيل الدخول أو تغيير الدلائل.
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تغيير الدلائل.
This example shows how to use the Focus method to set focus on a TextBox control.
Define a simple TextBox control
The following Extensible Application Markup Language (XAML) example describes a simple TextBox control named tbFocusMe
<TextBox Name="tbFocusMe">
This is the text in my text box.
</TextBox>
Set the focus on the TextBox control
The following example calls the Focus method to set the focus on the TextBox control with the Name tbFocusMe.
tbFocusMe.Focus();
tbFocusMe.Focus()
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
.NET Desktop feedback