I am trying to develop a "zoom" function, whereby when a user clicks or
d-clicks a point on the chart it filters out the unselected items. It seems
strange that you can select individual items on the chart - e.g. legends,
axis, data in series, data points etc. but there is no way to determine which
item has the outline...
I have added the following code to the D-click event of the form that I am
using to display the chart;
Dim ctlCurrentControl As control
Dim strControlName As String
On Error Resume Next
Set ctlCurrentControl = Screen.ActiveControl
strControlName = ctlCurrentControl.Name
MsgBox "Active Control : " & strControlName
But when I run the form, and try it, strControlName is empty!
By the way, I purchased your book, it's very good, well done.
Alvin Bruney - ASP.NET MVP said:
You can't do that because there is no selection object available - at least,
none that I know of. What are you trying to accomplish? If you want to
target a particular point, you will have to examine the points as they are
rendered.
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @
www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------
Identify a point (peak) on a chart in code. I can select various objects
on
the chart, but which object contains the details about the currently
selected
item?