We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

derived class for xpTaskBar

Thread ID:





7133 Sep 12,2003 10:03 AM Sep 12,2003 03:05 PM Windows Forms 1
Tags: Tools
Asked On September 12, 2003 10:03 AM

After draging a xpTaskBar to a form, a link "Add Task Box" displayed at the bottom of the properties window. Clicking it will add a box into the bar with codes in the form defination private Syncfusion.Windows.Forms.Tools.XPTaskBar xpTaskBar1; private Syncfusion.Windows.Forms.Tools.XPTaskBarBox xpTaskBarBox1; and other codes in the InitializeComponent() If I create class a control libery and inhert your XPTaskBar and XPTaskBarBox classes in the libery e.g. public myBar:XPTaskBar { ....} public myBox:XPTaskBarBox {....} Then compile it. Create a new Window app and add the control into toolbox. After draging the control to a form and clicking "Add Task Box" link, I will get codes in the form class defination private MyNameSpace.MyBar myBar1; private Syncfusion.Windows.Forms.Tools.XPTaskBarBox xpTaskBarBox1; Why did I get myBar1 from my bar class and xpTaskBarBox1 from your XPTaskBarBox? I want to get both from my derived classes. How to change designer or write a designer to override yours to achieve it? Thanks

Arun Srinivasan [Syncfusion]
Replied On September 12, 2003 03:05 PM

Hi Keith You need to use DefaultChildTypeAttribute attibute. You can specify the new default child type using this attribute on your parent type, in this case myBox instead of the default XPTaskBarBox. Arun


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.