Technology Software

How to Make a Button on VB

    • 1). Create a new Visual Basic project by clicking the "Project" heading in the top menu strip and selecting "New..." from the menu.

    • 2). Click the "Toolbox" button in the upper left corner of the development window. A slide-out menu appears.

    • 3). Scroll down through the available list of controls and double-click the "Button" heading. A button control is placed on the form.

    • 4). Move the button control into the desired position on the Windows form. The button may be resized as desired using the small white vertices that surround the button.

    • 5). Locate the "Properties" frame in the lower right corner of the development window. Several properties such as the name of the button and the text to be displayed on it are set in this window.

    • 6). Double-click the button. This will change the view in the development environments to code view. The cursor will automatically be placed in the area where code may be added to give functionality to the button.

    • 7). Add the desired code to the button.



Leave a reply