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. Image for the cookie policy date

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 12:27 PM

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.
Live Chat Icon For mobile
Up arrow icon