Click to See Complete Forum and Search --> : Validate Event not triggered with SSTab


Lothar Haensler
October 28th, 1999, 06:24 AM
I placed 2 text boxes on one sheet of an SSTab control.
When the user switches tabs the Validate Event is not triggered.
Does any one have a solution?

Crazy D @ Work
October 28th, 1999, 06:32 AM
Does the SSTab has a CausesValidation property? If not then it won't be triggered indeed.

Crazy D @ Work :-)

Lothar Haensler
October 28th, 1999, 07:39 AM
Yes, it does have a CausesValidation property and it is set to true.

Crazy D @ Work
October 28th, 1999, 07:49 AM
Does the validate event occur when you switch to another control?
Maybe it will work when you set the focus to another control on the (new) tab when you switch the tabpage

Crazy D @ Work :-)

Lothar Haensler
October 28th, 1999, 08:00 AM
the validate event DOES occur when I leave the SSTab control.
But, setting the focus to another control on the new tab didn't help.
Well, I have found a workaround, I explicitly call the _Validate proc of the relevant controls.
it's a pain, though, because I have to code around unwanted recursions.

I was just wondering, why I couldn't find any hints in the knowledgebase...

gknierim
March 16th, 2000, 09:52 AM
Has anyone found a fix to this as I have the same problem?