I have written a custom event in my indicator code. As part of this event, I need to repaint the various graphic objects drawn on the visible part of the chart, which I do via Refresh(). The repaint needs to be done regardless of whether the chart is connected to data from a provider.
Unfortunately, the chart is not being repainted. I believe the custom event is firing but is being consumed by the form. I can access the window of the chart and attach to its Paint event but this still does not work as there does not seem to be an equivalent to KeyPreview that relates to paint events.
I realize this is unsupported, but as done for KeyPress previously, can someone please point me in the right direction so that Ican achieve a chart repaint basedon a custom paint event even when disconnected form a data provider? Any suggestions would be greatly appreciated. Thanks.
Comment