|
-
Dec 12th, 2013, 05:43 AM
#1
Thread Starter
New Member
[RESOLVED] Referring to MSChart with Variable - CType
Hello,
Is it possible to use CType to refer to an MSChart control using a variable? I've seen many examples of this being used for textbox, combobox etc but I can't seem to get it to work for MSChart 
Dim chartID = "Chart" & x
CType(Controls(chartID), System.Web.UI.DataVisualization.Charting.Chart).Visible = True
CType(Controls(chartID), System.Web.UI.DataVisualization.Charting.Chart).Width = 800
Is it "System.Web.UI.DataVisualization.Charting.Chart" that I'm getting wrong? Is there a better way of doing it?
Thanks!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|