How To Fire TabStrip's Click Event When Using Msgbox in BeforeClick (238312)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q238312 SUMMARY
If a message box is displayed in a TabStrip control's BeforeClick event handler, the TabStrip control's Click event handler will not be fired, even if the Cancel parameter is set to False. In some situations it may be necessary to validate the information in the BeforeClick event handler and then display a message box to determine if the user wishes to continue. If so, the Click event should be fired.
REFERENCES
For more information regarding the TabStrip control, especially the BeforeClick and Click events, please see the
MSDN Library.
| Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
|---|
| Keywords: | kbActivexEvents kbhowto kbTabCtrl KB238312 |
|---|
|