In this part of the tutorials we shall learn how to use the TextBox control in WinForms! If you haven't seen the Part 4 of this series of C Sharp Learning, then click here First, create a new project or use the Project we used in Part 2: Then drag the TextBox control from the ToolBox into the Form (Form1): Now let us go through few of it's properties: BackColor: You can change the background color of the textbox with the help of the BackColor property: BorderStyle: If you want to change the way your TextBox looks, then you can use the BorderStyle property to change if your textbox has a border or should look 3D!: CharacterCasing: The textbox can also be set to take in only lower-case or upper-case characters and both! This can be achieved with the CharacterCasing property: Font: This property is present in almost every control in WinForms! Just choose your Font: ForeColor: ForeColor property sets the text color of the TextBox MaxLength: The MaxLength property sets th...
Comments
Post a Comment