Results 1 to 7 of 7

Thread: Adding click event to custom control

  1. #1
    Guest
    I have a custom control that I purchased that does not have a click event. I have contacted the developer and am waiting a response. Is there a way that I can add a click event? maybe manipulate the forms click event some how? All it has is GotFocus, LostFocus, DragDrop, DragOver, and Validate events. Is the a mouse object that I can declare, something, anything??

    Thanks,

  2. #2
    Addicted Member jcouture100's Avatar
    Join Date
    Aug 1999
    Posts
    141
    I think your out of luck on this, unless you have the
    source code. If you had the source code it would be
    easy to add a mouse click event and then re-compile,
    but with a store-bought control, you are pretty much
    out of luck. Hope your e-mail to the author yields
    results.
    JC

  3. #3
    Guest

    Thanks

    Thanks for the reply. That's pretty much what I figured. Why on earth would they not put in a click event??
    Very Frustrating

  4. #4
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    Dont loose hope, of cource there is a way (I think)

    all you have to do is put a LABEL control over it with a transparent back ground, that should fix the problem
    NXSupport - Your one-stop source for computer help

  5. #5
    Guest

    Tried it

    I had thought about your suggestion. One thing is that I can't seem to get the label actually over the control (custom imagebox), and during runtime I actually create more imageboxes that overlap, as many as specified by the user. If I could get the label over the original in design time would the same apply to subsequent imageboxes created at run time?

    Thanks for the suggestion

  6. #6
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    You can create your own custom control, that just display's the custom control you purchased. And all the propertie's map to the control that are in it. Do you get what I mean?

  7. #7
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Use the label's ZOrder method with the vbBringToFront parameter to make it stay on top:

    Label1.ZOrder vbBringToFront
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

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