hello every1.
i want the text box of form1 to be accessible in form 2 without declaring it as public.
ive declared it as protected.
but how do i inherit it in form 2.

public class Form2 
     Inherits Form1
     .....
End Class

ive tried tht one
but it gives me an error stating
base class stated for the class cannot be different from System.windows.forms.form

Create a New Windows application and design a form - Form1. Build it. Add New Inherited From. Select Form1.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.