Jump to content
Software FX Community

Call UserCallback Programmatically?


LeighHerbert

Recommended Posts

My application uses the UserCallback event heavily, and at present it is working.

I am now trying to add functionality which updates my charts via an external control, all asynchronously.

The most logical way for me to do this is to invoke my event handler for the UserCallback event by calling it directly.

I have done this many times before with other event handlers (Button.OnClick, for instance).

In this case, however, I cannot do it because I cannot create an object of type ChartFX.WebForms.UserCallbackEventArgs to pass in to the function.

Is it possible to do this?

Summary:

I have a method which looks like this:

Private Sub UpdateChart(ByVal sender As Object, ByVal e As ChartFX.WebForms.UserCallbackEventArgs) Handles Chart1.UserCallback, which works as expected.

How can I call UpdateChart from my program code?

post-5545-13922409486388_thumb.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...