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?
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).
RMRoy MullerAugust 2, 2002 03:38 PM UTC
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!
AdministratorAugust 5, 2002 06:38 PM UTC
Also, please open a Support Incident if you want a workaround for the "context menus not showing on key press" issue.
AdministratorAugust 5, 2002 06:39 PM UTC
Sorry, updated the wrong incident :)
RMRoy MullerAugust 20, 2002 03:31 PM UTC
It looks like this fix slipped through the cracks of the 220.127.116.11 release :-(
Is this fixable in the next release?
AdministratorAugust 21, 2002 12:35 PM UTC
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?
RMRoy MullerAugust 21, 2002 12:44 PM UTC
It is likely that I was using the previous (18.104.22.168) 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.