From the course: Visual Basic Essential Training

Unlock this course with a free trial

Join today to access over 24,500 courses taught by industry experts.

Add TextChanged event handler code

Add TextChanged event handler code - Visual Basic Tutorial

From the course: Visual Basic Essential Training

Add TextChanged event handler code

- [Instructor] Each one of these controls has lots of events. We just looked at the click event for the button. There for the text box, there's events like text changed, and we're looking for the selection change in the list box. When you click on a control, remember that you can see its properties over here in the properties window. At the top of the property window is a wrench and a lightning bolt. The lightning bolt represents all the events that are available in this control. So this text box has all of these events. Look at all of those. And so when you want to write some code for one of these events, you click in this box and then you double click and it will stub in the event handler. So that's what I want to do for this list box. I'm going to click on the list box, and then I'm looking for selection changed. It's hard to see because it's not wide enough. Let's make this a little bit wider and it's this one. So I'll put my cursor here and then double click. And that stubs in…

Contents