PDA

Click to See Complete Forum and Search --> : Validate Event!! BIG PROBLEM


ChrisM
Dec 16th, 1999, 04:46 PM
Hi everyone!

Could someone tell me what I am doing wrong!
I have created an ActiveX control which has a single constituent control (textbox) and I am using this control from within an HTML form. My control has several events, props and methods which all work fine except for the validate event which I am getting to fire but I CAN'T meke it keep the focus by setting the KEEPFOCUS (Cancel) property to true from within vbscript on the particular HTML page the control is within!

If you can help me than many thanks in advance!

Crazy D
Dec 16th, 1999, 06:33 PM
True, it only works when the control that gets the focus has set the CauseValidation (or whatever it's called) to True. So, if it's the only control you use (or you can't set that property of other controls) I guess you can't use that event.