Visual Basic 2008 Express Vol 2 Of 20

  • Uploaded by: Bradley Fourie
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Visual Basic 2008 Express Vol 2 Of 20 as PDF for free.

More details

  • Words: 240
  • Pages: 2
Im Going to Assume you read Vol 1 of this series if not I sugest you do that now to get filimlure With the Visaul BAsic 2008 Express Interface for more in depth Tutotials Visit my website http://www.fightingforfreedom.co.za for Free video Tutotials Coming SOON! This Volume Teaches you more about messagebox’s aswell as the Textbox Enjoy!

1.)Chamge the NAME of your command button to: btnDisplay 2.)Change the NAME of your text box to: txtInput 3.}Double click the command button and add the following code: * The green text is the explination the the code below it! ============================================================================= Public Class Form1 Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click 'Display the contents of the text box MessageBox.Show(txtInput.Text, "box") End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

1. 2. 3. 4.

Chamge the NAME of your commandbutton1 to: btnOK Chamge the NAME of your commandbutton2 to: btnExit Chamge the NAME of your Textbox to: txtName Chamge the NAME of your Label to: Enter Your Name

5. Double click commandbutton1 and add the following code: ======================================================================= 'Display a message box greeting to the user MessageBox.Show("Hello, " & txtName.Text & _ "! Welcome to Visual Basic 2008.", _ "Hello User Message")

6. Double click commandbutton2 and add the following code: 'End the program and close the form Me.Close()

Created by Spartan [email protected] http://www.fightingforfreedom.co.za For more Free Video Downloads Also see, http://www.youtube.com/MrSpartan480 for current tutorials

Related Documents


More Documents from "Bradley Fourie"