From the course: Visual Basic Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add TextChanged event handler code

Add TextChanged event handler code - Visual Basic Tutorial

From the course: Visual Basic Essential Training

Start my 1-month free trial

Add TextChanged event handler code

- [Instructor] For this demonstration, let's look at how to add a separate event handler for a different control. I'd like to look at some of the events that are available for the text box. So select it, and then what I'd like to do is monitor what the user is typing. And as they type new information into the text box, I want to do something with that. Remember what we would do first? We need to figure out what event is raised or triggered. So let's look over here in the Properties. You remember, you go over here and you click on the event handlers. And then you look to this list. There's a lot of choices here. I'm looking for something that happens when the text is edited. So I suspect, well, you'd go down and look for text. So Text Input, Text Changed, those all look promising. Remember what I did last time is I double clicked on the button. That only works for the default event. If it's any event other than…

Contents