How do I get this to stop?
Printable View
How do I get this to stop?
Hi wbartley,
In class wizard, override the OnOK click message. Do not call the base class.
Jeff
Don't make your OK (or cancel) button the default button.
In VS 7.1; open the dialog in the resource editor, and bring up the properties on the OK button. Make sure the "Default Button" property is "False". Do the same for the "Cancel" button (if you have one).
Viggy
I have no OK button (I deleted it when I created the dialog) and I can't find any OnOK method.
Add it using the Class Wizard (or whatever they are calling it in VS 7.1; I forget).
Vig.
Take a look at the following FAQ...