C# TextBox and Button | 4X Speed
Programming Guru
C# TextBox and Button
TextBox and Button are the most important control s in C#.In every application C# Text Box and Button will be used in some way. In this tutorial TextBox and Button are taught in the simplest way possible. The TextBox and button C# in 4X Speed for convenience. #textbox #Button #tutorial
TextBox
A TextBox control is used to display information entered either by you/user at design time or by an assignment statement in the code. A TextBox purpose is to allow the user to input Text to be used by the program. We use a single line text box or set the property to single line when only one line of input is required and set the property to multiline when more than one line of input is required.
Some TextBoxes are not editable; they are only used for displaying text. A TextBox is based on custom logic rules. In GUI programming, you will handle custom events provided by the TextBox to know when to execute your logic rules. The text displayed by a TextBox can be accessed using the TextBox Text property. A TextBox can contain zero, one or two scrollbars.
Button
Buttons are mainly used to start, end or interrupt a process. A button can be pressed either by clicking it by a mouse or by tabbing to it and than pressing enter. The Button is mainly used to initiate action. The caption Property determines the text to display on the face on the Button. If we set the Cancel property of the Button to true the Button will be activated from anywhere in the form by pressing the Esc key.
We can also invoke a Button's click event by setting up an "access key" for it. From the user point of view a Button is useful when clicked, in which case the user positions the mouse on it and presses one of the mouse buttons. The classic button is called a Command Button. A Button needs a container or host. The Container could be a form, a toolbar etc.
Follow my Facebook Page# : https://www.facebook.com/105940115222549 Follow me on Instagram : https://www.instagram.com/p/CViUlw2sOMi Follow me on tumblr : http://programming-guru.tumblr.com Follow me on reddit : https://www.reddit.com/u/Programming_guru1?utm_medium=android_app&utm_source=share ... https://www.youtube.com/watch?v=rPmEgypM3WM
14707539 Bytes