|
-
December 28th, 2001, 12:17 PM
#1
SSTab on ActiveX control and cmdButton.Cancel =True doesn't work
I have a SStab on an UserControl. The UserControl has DefaultCancel = True. Now when you drop that UserControl on a dialog box. The Cancel button on the dialog box has the property Cancel = True.
The Usercontrol has a number of other objects on it. If the focus is on any object even on objects inside the tab, pressing the escape key will work. If the focus is on one of the tabs (of the SSTab,) pressing escape key doesn't do anything. QA and Product management wants it work. How do I do that?
-
December 28th, 2001, 04:20 PM
#2
Re: SSTab on ActiveX control and cmdButton.Cancel =True doesn't work
It should be easy enough by setting the KeyPreview property for your control to true. Your control will then receive the keystrokes before any controls in it.
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
-
January 2nd, 2002, 09:45 AM
#3
Re: SSTab on ActiveX control and cmdButton.Cancel =True doesn't work
Thanks for the help. However it didn't quite work. So I tried something else that solved the problem for reason unknown to me. If you add a underscore making it a hot key (with &) on the tabs caption. It will work. Without the underscore, it doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|