Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
Expert Solution & Answer
Book Icon
Chapter 3, Problem 1MQ9

Explanation of Solution

TextChanged Event:

  • If a control’s text property contents are getting changed, then the “TextChanged” event occurrs.
  • The “TextChanged” event can occur by the following ways:
    • When the user is entering or deleting the text content on a controls text property.
    • When the application code assigns or removes the text content into the controls text property.

Example:

'Procedure code1

Private Sub btnAsign_Click(ByVal sender As Object,ByVal e As System.EventArgs) Handles btnAsign. Click

'The button click event assigns the text to 'the text box control

txtT1.Text= “Karlson”

End Sub

'Procedure code2

Private Sub txtT1_TextChanged(ByVal sender As System...

Blurred answer
Students have asked these similar questions
When does a text box’s TextChanged event occur?
The text box's event is triggered when the contents of the text box change.
When the contents of a text box change, the text box’s event occurs.a. ChangedTextb. ModifiedTextc. TextModifiedd. TextChanged

Chapter 3 Solutions

Programming with Microsoft Visual Basic 2017