June 28, 2017

How to put focus on TextBox when the form loads

Introduction

Hi, Friends In this tutorial  I will tell you how you can make a textbox focused when the program start in Windows Forms applications using C#.

Set the ActiveControl property of the form and you should be fine.

this.ActiveControl = yourtextboxname;



No comments:

Post a Comment