Hello,
make some digging, but can't solve my problem.
I'm making a UserControl to act like a GroupBox with some controls on it, a tabcontrol and a panel.
In runtime mode, i want to be able to click on tabcontrol, and disable panel inside it, something like this:
I want that TabPage works like a toggle button to enable or disable Panel control inside it, but leaving UserControl always enable.
UserControl with a TabControl inside it, and inside TabControl a Panel.
In design mode i want to be able to drop some controls inside panel, those who also will be enable or disable when clicking TabControl, because they are inside Panel.
Is this possible?
At this point i know how to make UserControl act like a container:
When droping my usercontrol inside a form, it has already tabcontrol inside it and panel control inside Tabcontrol.
Adding new controls to UserControl at desgin time, i want them to be attached (child?) to panel and not to the base of UserControl.
Thanks in advanced!
make some digging, but can't solve my problem.
I'm making a UserControl to act like a GroupBox with some controls on it, a tabcontrol and a panel.
In runtime mode, i want to be able to click on tabcontrol, and disable panel inside it, something like this:
Code:
panel1.enable=not panel1.enable
UserControl with a TabControl inside it, and inside TabControl a Panel.
In design mode i want to be able to drop some controls inside panel, those who also will be enable or disable when clicking TabControl, because they are inside Panel.
Is this possible?
At this point i know how to make UserControl act like a container:
Code:
Imports System.ComponentModel
Imports System.ComponentModel.Design
<Designer("System.Windows.Forms.Design.ParentControlDesigner,System.Design", GetType(IDesigner))> _
Public Class MyTabGroup
(....)
Adding new controls to UserControl at desgin time, i want them to be attached (child?) to panel and not to the base of UserControl.
Thanks in advanced!