How to inherit windows form that contain controls

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2009
Posts: 2
Reputation: Tjandra is an unknown quantity at this point 
Solved Threads: 0
Tjandra's Avatar
Tjandra Tjandra is offline Offline
Newbie Poster

How to inherit windows form that contain controls

 
0
  #1
Mar 24th, 2009
Hi guys,

I have setup a form (frmParent) that contains 1 TableLayoutPanel with 1 col & 2 rows. In the first row i put a DataGridView and on second row i put a Button. I set all controls' modifiers to Public. Then add a form (frmChild) that inherit from frmMaster.

The problem is all the controls become locked. I cannot change any property of the controls. How to make the controls on frmChild editable (change its properties) in IDE?

Oh btw i'm using VB in VS 2008. Please help me...
TIA
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: How to inherit windows form that contain controls

 
0
  #2
Mar 24th, 2009
The purpose of inherits is code reuse. Therefore you can't change anything from an inherited form. You can add to it but no changes allowed.
Wayne

It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC