Results 1 to 3 of 3

Thread: CausesValidation for controls (buttons) inside usercontrol

  1. #1

    Thread Starter
    Addicted Member Davor Geci's Avatar
    Join Date
    Sep 2009
    Posts
    224

    CausesValidation for controls (buttons) inside usercontrol

    How to add CausesValidation for buttons in this usercontrol.
    (The control itself is having this property, but how to add this property to each button that is created in this usercontrol)

    The usercontrol is ACP Ribbon 2007 author is Adriano Paladini:
    https://www.planet-source-code.com/v...66951&lngWId=1

    Can you tell if it's even possible to add CausesValidation to the buttons in this usercontrol?

    There was already a discussion on CausesValidation property here:
    http://www.vbforums.com/showthread.p...ation-required
    but how to add it to a controls inside a usercontrol.
    My projects:
    Virtual Forms
    VBA Telemetry

  2. #2
    Fanatic Member
    Join Date
    Apr 2015
    Location
    Finland
    Posts
    692

    Re: CausesValidation for controls (buttons) inside usercontrol

    That control seems to use Image objects as button, which has no validate property natively, if changed to Pictures then it is possible.

  3. #3

    Thread Starter
    Addicted Member Davor Geci's Avatar
    Join Date
    Sep 2009
    Posts
    224

    Re: CausesValidation for controls (buttons) inside usercontrol

    Tech99 thanx for reply.

    The
    Code:
    RaiseEvent ButtonClick
    is raised in a click event of a label. How to go with the modification? Maybe to try to use a hidden picture box or are there any other ideas?
    My projects:
    Virtual Forms
    VBA Telemetry

Tags for this Thread

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