CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 1999
    Posts
    3,332

    Validate Event not triggered with SSTab

    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?


  2. #2
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: Validate Event not triggered with SSTab

    Does the SSTab has a CausesValidation property? If not then it won't be triggered indeed.

    Crazy D @ Work :-)

  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: Validate Event not triggered with SSTab

    Yes, it does have a CausesValidation property and it is set to true.


  4. #4
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: Validate Event not triggered with SSTab

    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 :-)

  5. #5
    Join Date
    May 1999
    Posts
    3,332

    Re: Validate Event not triggered with SSTab

    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...



  6. #6
    Join Date
    Jan 2000
    Posts
    264

    Re: Validate Event not triggered with SSTab

    Has anyone found a fix to this as I have the same problem?


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

Featured