In This Article

BarControlEventHandler Delegate

Represents the method that will handle IBarControl events.

public delegate void BarControlEventHandler(object sender, BarControlEventArgs e)

Parameters

Name Type Description
sender object

Sender of the event.

e BarControlEventArgs

A BarControlEventArgs containing event data.

Remarks

When you create a BarControlEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.

Constructors

BarControlEventHandler(object, IntPtr)

public BarControlEventHandler(object @object, IntPtr method)
Parameter Type Description
object object
method IntPtr

Methods

BeginInvoke(object, BarControlEventArgs, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(object sender, BarControlEventArgs e, AsyncCallback callback, object @object)
Parameter Type Description
sender object
e BarControlEventArgs
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)
Parameter Type Description
result IAsyncResult

Invoke(object, BarControlEventArgs)

public virtual void Invoke(object sender, BarControlEventArgs e)
Parameter Type Description
sender object
e BarControlEventArgs