Nuno,
How about accessing it via a Public Property?
Public Property MyControl As Button
Get
Return Button1
End Get
Set (ByVal value As Button)
Button1 = value
End Set
End Property
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Nuno" <Nu**@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
How can i change the access modifier of a control from protected to public
if
the designer code is not visible to the developer? I tryed declaring it on
the page but it throws a compile error saying that the control has already
been declared as protected.
Nuno