View Single Post
Old Nov 7th, 2007, 2:44 PM   #4
Alias
Newbie
 
Join Date: Oct 2007
Posts: 29
Rep Power: 0 Alias is on a distinguished road
Re: Accesing Control Properties on Another Form

How would it be best to declare, reference and use new variables for this task when it could be done with a simple cast?

Imagine...

VB.NET Syntax (Toggle Plain Text)
  1. ((Button)Parent.Controls["ButtonName"]).Enabled = value
Alias is offline   Reply With Quote