= Create a simple user interface = This article will teach you how to create a Button, Label and a Textbox control. 1. On the File menu, choose New Project. [[br]] [[Image(1- FileNewProject (Custom).jpg)]] 2. In the New Project dialog box, in the Templates pane, click Windows Application. [[br]] 3. In the Name box, type !TextBoxExample, and then click OK. A new Windows Forms project opens. [[br]] [[Image(2 - Windows Application (Custom).jpg)]] 4. From the Toolbox, drag a !TextBox, Label, and Button control onto the form. [[br]] [[Image(4 - Add Controls (Custom).jpg)]] 5. Select the Label control and drag it above the !TextBox control [[br]] [[Image(5 - Align Controls (Custom).jpg)]] 6. In the Properties window, change the Text property of the Label control to the following code. Enter your name and click the button. [[br]] [[Image(6 - Change Label Text (Custom).jpg)]] Now that you have created a basic user interface, you will need to add a little bit of code to your program, and then it will be ready to test! == To add code and test your program == 1. Double-click the Button control to open the Code Editor. The Code Editor opens the Button1_Click event handler. [[br]] [[Image(2.1 - DoubleClick Button (Custom).jpg)]] [[br]] [[Image(2.1a - Double Click Button (Custom).jpg)]] 2. Add the following line of code to the Button1_Click event handler. {{{ MsgBox("Your Name is " & Textbox1.Text) }}} [[br]] [[Image(2.2 - Add Message (Custom).jpg)]] 3. Press F5 to run your program. [[br]] [[Image(2.3 - Press F5 (Custom).jpg)]] 4. When the form appears, type your name in the !TextBox control and click the button. A message box appears, displaying the text in the !TextBox control. Change the text and click the button again. Each time you click the button, the updated text is displayed. [[br]] [[Image(2 (Custom).jpg)]]