Groups | Blog | Home
all groups > dotnet general > october 2004 >

dotnet general : problem with form designer


Dayne
10/17/2004 5:53:35 PM
I have a problem with how visual studio.net's form designer handles form
inheritance. This is what I am trying to do.. I have a base form with some
controls on it..I then create a child Form from this base form...The problem
I notice so far is that if the controls in the base form don't have the
"friend" modifier , the form designer will regenerate the intial code for
each control in the inherited form.....This is causing me headache...If i
remove a control from the base class, the form designer won't remove the
code in the inherited form...I have to do it manually...Can someone please
help

Dayne

Sijin Joseph
10/18/2004 10:12:08 AM
In the designer for the base class set the Modifier to protected for the
controls.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

[quoted text, click to view]
AddThis Social Bookmark Button