Question
, Describe the contents of the text box after the button is clicked. LP2 Assignment: Visual Basic Events This assignment will assess the following competency:
, Describe the contents of the text box after the button is clicked.
LP2 Assignment: Visual Basic Events This assignment will assess the following competency: 2. Write simple Visual Basic Code. Directions: Complete exercise 6 & exercise 7 on page 47 and exercise 12 on page 48 of your textbook. Create a MS Word file that contains your name, chapter, exercise number, and the answer for each exercise.
excercise 6
Private Sub btnOutput_Click(...) Handles btnOutput.Click txtBox.BackColor = Color.Yellow txtBox.Text = "Hello" End Sub
In Exercises 7 through 10, assume that the three objects on the form were created in the order txtFirst, txtSecond, and lblOne. Determine the output displayed in lblOne when the program is run and the Tab key is pressed. Note: Initially, txtFirst has the focus.
exercise 7
7. Private Sub txtFirst_Leave(...) Handles txtFirst.Leave lblOne.ForeColor = Color.Green lblOne.Text = "Hello" End Sub
exercise 12
12. Private Sub btnOutput_Click(...) Handles btnOutput.Click txtBox.Text = Hello End Sub
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started