943,801 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1952
  • VB.NET RSS
Mar 24th, 2009
0

How to inherit windows form that contain controls

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Tjandra is offline Offline
2 posts
since Mar 2009
Mar 24th, 2009
0

Re: How to inherit windows form that contain controls

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.
Reputation Points: 84
Solved Threads: 58
Posting Pro in Training
waynespangler is offline Offline
461 posts
since Dec 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Multiple column data
Next Thread in VB.NET Forum Timeline: Watermark Images





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC