Microsoft
Software
Hardware
Network
Question : VB 2008 - Programmatically updating controls from an array
I have a user control that includes a collection of oval-shape controls. I want to update the fill color based on the content of an array of structure variables. I need a way to programmatically select the right oval-shape control based on it's name. Something like this (but works!)...
For x = 1 to 10
Control.Name("Well_A" & x).FillColor = array(x).groupcolor
Next x
Thanks for your help.
Answer : VB 2008 - Programmatically updating controls from an array
Yeah...if they were normal controls then the approach you originally posted (and Paul_Harris_Fusion tried to extend) would have worked.
Unfortunately, though, the ShapeControls are an oddity!... =O
Random Solutions
setup basic ipsec vpn for windows on cisco sa520
Microsoft System Center Ops Manager 2007 - Reporting
Check validity before record is saved or edited on a form
easy iis/owa question for a change - force https and no double login
Auto Send Excel as Email Attachment
Can't boot up my XP system to safe mode, why?
LINQ can't be used in Web app?
log4j not writing to file
Changing hte ip address of the Symantec Endpoint Protection Server
Use different HTTP Redirects on multiple virtual directories in IIS 7.5