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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inhereted form

Status
Not open for further replies.

almi

Programmer
Jun 19, 2001
16
0
0
YU
Hi to all!

I have the following problem

2 Forms
-frmBase
-frmInherited

frmInherited inherits frmBase and it works fine, but i can't view the design of form frmInerited, can anyone help me

Best Regards
ALMI
 
I have this problem. VB.NET I think is seeing the inherited form as a pure class. What I did was have another form that was identical to the base form and make the designer changes then copy all the code to the base form to be inherited.
 
I think I had the same problem. If I changed the "Inherits..." line of code in frmInherited then I couldn't see any of the controls on frmInherited in the Windows Form Designer.

I determined that the InitializeComponent sub (in the Windows Form Designer generated code) wasn't making the necessary changes. I had to manually change the line of code that starts with:

Me.Controls.AddRange(New System.Windows.Forms.Control()

to include the missing controls.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top