The Property PreferredSize for XPToolBar is Read Only

Hi, We are using visual inheritance. We have a base Form which has XP Toolbar. We have some derived forms. Recently we changed the base Form. Now every time we change anything in the derived form, the following code is getting generated: this.detailToolBar.PreferredSize = new System.Drawing.Size(241, 25); It gives the following compilation error: SalesInvoiceDetailsForm.cs(373): Property or indexer 'Syncfusion.Windows.Forms.Tools.XPMenus.XPToolBar.PreferredSize' cannot be assigned to -- it is read only If I remove this line, it gets generated again. Can you please let me know what is happening. thanks, - Reddy

1 Reply

RP Ramesh Praveen Syncfusion Team January 24, 2003 05:27 PM UTC

This is a bug in VS.Net that tries to set a value for a readonly property. We will fix this (by making the property hidden for serialization). Regards, Praveen Ramesh

Loader.
Up arrow icon