Sometimes you will encounter a situation where you need to be notified when another VB application is closing. Similarly, you may want to close another VB app, maybe even several instances of it.
Many applications use several modeless forms.
The solution to both of these problems lies within the unique structure of a Visual Basic application. Every window in every program belongs to a class . The class is a way of categorizing what the window is for. It might identify a window as a textbox, a tooltip, a button, etc. In addition, most windows have a text string associated with them.