Results 1 to 7 of 7

Thread: How to know when a control is selected at designtime

Threaded View

  1. #1

    Thread Starter
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    How to know when a control is selected at designtime

    Ok this is kind of a wierd one, I have a control i made which inherits from ComboBox but creates a label to show over top of itself. Everything works fine EXCEPT that you can't click on the control at designtime to select it, you have to drag over it to select it. I think this is happening because you are actually selecting the label in front of it which doesn't actually belong to the form or have a site. I tried to catch any events in either the label or the combo itself at designtime to just have the label forward the selection to the combo, but I don't know the right event. I can't get the enter, gotfocus, click, mousedown, mousemove events to fire on either control at designtime. About the only event that I can get to work is ChangeUI but that doesn't do what I need or fire when i need. So now that I have bored you, anyone know how to catch an event or know when a control is selected at designtime?
    Last edited by Edneeis; Jul 17th, 2003 at 10:16 AM.

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