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.

TabControlExt subclassing and VStudio designer

Thread ID:

Created:

Updated:

Platform:

Replies:

703 Aug 2,2002 07:44 AM Aug 21,2002 08:44 AM Windows Forms 7
loading
Tags: Tools
Roy Muller
Asked On August 2, 2002 07:44 AM

I've created a UserControl derived class which contains a TabControlExt object. I gave the tab control "protected" visibility so I could set it's properties in VStudio's visual designer. In particular, I wanted to be able to add new tabs using VStudio (as opposed to adding code and setting tab page properties manually). This works pretty well, but VStudio insists on setting this.m_tabControlExt.TabCount = #; in InitializeComponents() where # is the number of tab pages. This means that every time I edit the control with VStudio's designer I have to comment out this line of code because TabPageControlExt.TabCount is read-only. Is there a better way to get around this?

Administrator [Syncfusion]
Replied On August 2, 2002 08:50 AM

Roy, Seems like a bug in VS where it assumes a "set" property even when it is not implemented. We could force this to not happen applying the DesignerSerializationVisibility.Hidden attribute in the TabCount property. Look for this in our next release (due early next week). Praveen Ramesh

Roy Muller
Replied On August 2, 2002 11:38 AM

You guys are good :-) I really appreciate the quick and accurate responses to problems that I post here. I haven't had this kind of service since working with Qnx (http://www.qnx.com). Thanks!

Administrator [Syncfusion]
Replied On August 5, 2002 02:38 PM

Also, please open a Support Incident if you want a workaround for the "context menus not showing on key press" issue. Praveen Ramesh

Administrator [Syncfusion]
Replied On August 5, 2002 02:39 PM

Sorry, updated the wrong incident :) -Praveen

Roy Muller
Replied On August 20, 2002 11:31 AM

It looks like this fix slipped through the cracks of the 1.0.2.4 release :-( Is this fixable in the next release?

Administrator [Syncfusion]
Replied On August 21, 2002 08:35 AM

Roy, We did add the DesignerSerializationVisibility.Hidden attribute to TabCount. I tried reproducing this problem in a sample and the designer didn't insert the TabCount with our current version. Could you possibly be linking to an older version of our lib? If not, could you open a incident and attach a sample? Thanks Praveen Ramesh

Roy Muller
Replied On August 21, 2002 08:44 AM

It is likely that I was using the previous (1.0.2.2) version of syncfusion; see my post in the General forum, subject "Modified Syncfusion Source and Updates". I thought I was current; I'm sorry for the false alarm.

CONFIRMATION

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.

;