Results 1 to 2 of 2

Thread: Validate Event!! BIG PROBLEM

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Nottingham
    Posts
    20

    Post

    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!

  2. #2
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width