Tab Control in inherited forms 
Author Message
 Tab Control in inherited forms

Hello,

I have an inherited form, wich contains a tab control, with 3 tab pages.
When I try to put any control in one of these pages, in a form who inherits
from the "base form", the designer change the focus to the tab control and
shows me the following message:

                                    "Cannot add 'Control' to TabControl.
Only TabPages can be directly added to TabControls."

Therefore, the same works on the "base form". This is a designer's bug? How
can I put controls in a inherited tab page?
Thanks in advance,

Fabrcio de Novaes Kucinskis.

PS: all the controls has modifiers "Protected".



Sun, 02 Oct 2005 20:28:36 GMT  
 Tab Control in inherited forms
Hello,


Quote:
> I have an inherited form, wich contains a tab control,
> with 3 tab pages. When I try to put any control in one
> of these pages, in a form who inherits from the "base
> form", the designer change the focus to the tab control and
> shows me the following message:
[...]
> Therefore, the same works on the "base form". This is
> a designer's bug? How can I put controls in a inherited
> tab page?

The inherited tab pages are not in design mode. That's why trying to add
controls to them will add the controls to the tabcontrol (this causes
the error). IMHO that's a bug.

Regards,
Herfried K. Wagner



Sun, 02 Oct 2005 22:09:38 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. custom form control: Cannot view design view of forms that inherit this form

2. Inherited form and remembering controls

3. Move controls on inherited form?

4. Inherited Forms, Reseting Controls

5. Inherits System.Windows.Forms.Control...

6. BUG: Can controls be moved on inherited forms?

7. Access control property on inherited form

8. Add Inherited Form - not all existing forms shown

9. Inherits - Whats the difference between Form.Textbox and Form.TextboxBase

10. i can't open a inherited form with form editor (beta 2)

11. ReSizing form controls causes TAB controls to DISAPPEAR????

12. Masked Edit COM control appears only on first tab page of tab control in VB.NET

 

 
Powered by phpBB® Forum Software