Thread
:
Accesing Control Properties on Another Form
View Single Post
Nov 7th, 2007, 2:44 PM
#
4
Alias
Newbie
Join Date: Oct 2007
Posts: 29
Rep Power:
0
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
)
(
(
Button
)
Parent.
Controls
[
"ButtonName"
]
)
.
Enabled
= value
((Button)Parent.Controls["ButtonName"]).Enabled = value
Alias
View Public Profile
Find More Posts by Alias