Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET 2.0 Declare controls as Public?

Status
Not open for further replies.

NBartomeli

Programmer
Jul 1, 2003
111
US
How can you change a control from protected to public? or can you not do that anymore?

Thanks in advance
 
You had better gone to the right forum... forum855.

Any way, use properties for that.

Code:
    Public Property myButton() As Button
        Get
            Return Button1
        End Get
        Set(ByVal value As Button)
            Button1 = value
        End Set
    End Property
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top