Visual Basic

Text packing containers are used to accept user enter or show information on a form after a query. A typical text field looks like an oblong field with white background and black border. Nevertheless, its properties could be manipulated both during design time or run-time. For example, a textual content field may have a yellow background when a consumer inputs data or the textual content dimension will change contained in the field upon typing. In Visual Primary, you'll be able to replace multiple text boxes in a type with different controls while you need to modify the person interface layout. You are able to do this at design time

      Step 1
      Load the Visual Basic environment by clicking "Start>Programs>Microsoft Visual Studio>Microsoft Visual Basic [version number]" from your computer.

      Step 2
      Open an existing project you want to work on. On the menu, click "File>Open Project" and browse the file from the dialog box that pops up.

      Step 3
      Open the "Form" containing the text boxes you want to replace. You can do this by clicking the name of the form from the "Project Explorer" window on the right side of the screen.

      Step 4
      Switch the form to design mode by clicking the "View Object" button on top of the "Project Explorer" window. Here, you will see all the controls that made up your form design.

      Step 5
      Click one "TextBox" control on the form to select. Press "Ctrl" key on the keyboard and hold. Click the rest of the text boxes to highlight them.

      Step 6
      Press "Delete" key on the keyboard to remove the text box controls that you just selected.

      Step 7
      Choose another control(s) to replace the text boxes. Select and drag the control(s) one at a time from the "Toolbox" into the form. Configure their appearance and behavior on the "Properties" window.

      Step 8
      Proceed with the rest of the design process. You may add more controls or rearrange their location on the form.

      Step 9
      Switch the form to "Source Code" mode by clicking the "View Code" button on top of the "Project Explorer" window.

      Step 10
      Modify the program codes. Erase all references of the "TextBox" controls you previously deleted. Replace them with the current controls you added to the form.

      Step 11
      Compile and run the program by clicking "Run>Start" from the menu or pressing the "F5" key. Correct any programming errors, if any.

      Step 12
      Save the changes you made to the program by clicking "File>Save Project" from the menu.
PLR ARTICLE

0 comments: