Someone please help me! I am not used to Visual Basic



Part I
Purpose: To learn about the VB. Net IDE and write a simple program
Read the handouts and two example programs we have done in the lab.
Create a solution named Hello.sln in VB. Net on your disk that does the following:
  • The Form is to have its text property - your last name Hello Application (ex. Li's Hello Application)
  • The Form has the following controls from the Toolbox:
    • a Label
      • name: lblOut
      • text: blank (no characters)
    • a Textbox
      • name: txtMessage
      • text: blank (no characters)
    • a Button
      • name: btnShow
      • text: Show Message
  • In user interface design view, double-click btnShow (Show Message) button to generate btnShow_Click event
  • Write the code in the btnShow_Click event to display in lblOut whatever was typed in txtMessage (Hint: you only need 1 line of code using the text properties)
  • Remember, to save what you have done, you need to quit Visual Studio .Net, find the folder where you created your VB solution and copy that solution folder to your floppy disk or zip it.

  • Part II
Purpose: To learn more about programming by creating and running a program that:
Uses variables
Uses assignment statements
Uses If ... Then.. Else statements

Read My Math and Fun with Math example.
Create a program in Visual Basic in Visual Studio.Net that is named MathGame:
MathGame should have the following controls:

Control Name Range numeric up-down boxes nudNum1 0 ~ 20 numeric up-down boxes nudNum2 0 ~ 20Control Name Text at Design Time label lblOperation blank(no text) label lblEqual = label lblMessage blank (no text) textbox txtAnswer blank (no text) button btnClear Clear button btnAdd Add button btnMultiply Multiply

MathGame will have a click event for each button:

  • btnClear_Click
    • Clear the sign in lblOperation, the answer in txtAnswer, and message in lblMessage
  • btnAdd_Click
    • Display a + sign in lblOperation
    • Check to see if an answer has been entered in txtAnswer. If not use a message box to display an error message and Exit Sub
    • Check to see if the answer entered in txtAnswer is correct based on the two numbers being added. If so Display "Correct" in lblMessage. If incorrect answer Display "Incorrect" in lblMessage
  • btnMultiply_Click
    • Display an * sign in lblOperation
    • Check to see if an answer has been entered in txtAnswer. If not use a message box to display an error message and Exit Sub
    • Check to see if the answer entered in txtAnswer is correct based on the two numbers being multiplied. If so Display "Correct" in lblMessage. If incorrect answer Display "Incorrect" in lblMessage
  • Comments (follow a single quotation mark):
    • 'Your name
    • 'Purpose of the program
    • 'CSCI 1005
    • 'In each event explain what your code is doing