Problem in visual inheritance

I'll try to keep this simple.

Scenario1: I have a BaseForm and created a Label Control naming "Label1" in it. I have one InheritedForm (inherited from the BaseForm) and also created a Label Control (other than the BaseForm) in it. Ican't give the same name "Label1" to this control on inherited Form.

Scenario2: I have a BaseUC UserControl and created a Label Control naming "Label1" in it. I have one InheritedUC UserControl (inherited from the BaseUC UserControl) also created a Label Control in it. But in this case Ican give the same name "Label1" to this control. Why So ? The modifier of the Control must be "Private" or "Friend". Any reason why this was done or Is it a known bug with the visual inheritance ?

For visual inheritance :- Basically I don't write any code for this. VS2005 IDE does it all for me. Create a UserControl BaseUC and then create another UserControl (Select Inherited User Control) and select the BaseUC from the Inheritance picker and name it InheritedUC. It automatically creates the following code in the Designer Code file (InheritedUC.designer.vb) of the InheritedUC User Control

Thanks, Vivek Natani

[1266 byte] By [VivekNatani] at [2007-12-23]
# 1
We've been through this before and I can't make it happen, regardless of accessibility of the control. Tried in it both VB and C# too. One caveat: C# is case sensitive so you should call it "label1", not "Label1"...
nobugz at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms General...