Launching Event

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hector Martinez

    Launching Event


    I need to launch an MouseDown event for a control. How can I do that

    Thanx in advantage...
  • Stoitcho Goutsev \(100\) [C# MVP]

    #2
    Re: Launching Event

    Hi Hector,
    If it is your control you can call OnMouseDown method. It will fire the
    event for you. If it is not you can either use reflection to call
    OnMouseDown or send say WM_LBUTTONDOWN message to the control.

    If you want to raise Click event, though, you can use Control.InvokeO nClick
    method (for example you can use the method provided by your form) specifing
    the control you want to fire the event..
    --
    HTH
    B\rgds
    100

    "Hector Martinez" <anonymous@disc ussions.microso ft.com> wrote in message
    news:4D800647-7207-4B19-B04B-382AB996C865@mi crosoft.com...[color=blue]
    >
    >
    > I need to launch an MouseDown event for a control. How can I do that?
    >
    >
    > Thanx in advantage...[/color]


    Comment

    Working...