devxlogo

Manage Focus with MDI Toolbars

Manage Focus with MDI Toolbars

While developing MDI applications in VB 4.0, you probably have noticed that the cursor on the MDI child disappears when you click on the toolbar on the MDI parent. You cannot navigate through Tab or any other key. To avoid this problem, put this one line of code in the MouseUp event of every Toolbar object:

 Private Sub tbMain_MouseUp(Button As Integer, Shift _	As Integer, X As Single, Y As Single)	me.setfocusEnd Sub

devx-admin

Share the Post: