|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Custom Control PropertiesI have a control that I need to remove some properties from. I have marked
them obsolete so that the rest of the dev team can continue to work, however, if they delete them, it automatically regenerates them in the auto generated code. Is there a way to mark them so they dont re-generate those properties? I dont want to just remove them, because I dont want everyone to have compile errors until they are fixed. Thanks, Rick "Rick Mogstad" <Rick.Mogstad@GMail.NOSPAM.com> schrieb Apply the System.ComponentModel.DesignerSerializationVisibilityAttribute to > I have a control that I need to remove some properties from. I have > marked them obsolete so that the rest of the dev team can continue > to work, however, if they delete them, it automatically regenerates > them in the auto generated code. Is there a way to mark them so > they dont re-generate those properties? > > I dont want to just remove them, because I dont want everyone to > have compile errors until they are fixed. the property. Armin If you use the Browsable(False) attribute on the control, it will no longer
show up in the properties window, and the designer won't generate code for it. Show quoteHide quote "Rick Mogstad" wrote: > I have a control that I need to remove some properties from. I have marked > them obsolete so that the rest of the dev team can continue to work, > however, if they delete them, it automatically regenerates them in the auto > generated code. Is there a way to mark them so they dont re-generate those > properties? > > I dont want to just remove them, because I dont want everyone to have > compile errors until they are fixed. > > Thanks, > > Rick > > > I have Browsable(False) already (And EditorBrowsable too), but it still
shows up. Show quoteHide quote "Scott Swigart" <sc***@swigartconsulting.com> wrote in message news:96D00D35-0E59-4DAB-B6C0-614213300D08@microsoft.com... > If you use the Browsable(False) attribute on the control, it will no > longer > show up in the properties window, and the designer won't generate code for > it. > > "Rick Mogstad" wrote: > >> I have a control that I need to remove some properties from. I have >> marked >> them obsolete so that the rest of the dev team can continue to work, >> however, if they delete them, it automatically regenerates them in the >> auto >> generated code. Is there a way to mark them so they dont re-generate >> those >> properties? >> >> I dont want to just remove them, because I dont want everyone to have >> compile errors until they are fixed. >> >> Thanks, >> >> Rick >> >> >> How about the DesignerSerializationVisibility attribute (set to Hidden)
/claes Show quoteHide quote "Rick Mogstad" <Rick.Mogstad@GMail.NOSPAM.com> wrote in message news:eHlQ6f1TGHA.1728@TK2MSFTNGP11.phx.gbl... >I have Browsable(False) already (And EditorBrowsable too), but it still >shows up. > > > "Scott Swigart" <sc***@swigartconsulting.com> wrote in message > news:96D00D35-0E59-4DAB-B6C0-614213300D08@microsoft.com... >> If you use the Browsable(False) attribute on the control, it will no >> longer >> show up in the properties window, and the designer won't generate code >> for it. >> >> "Rick Mogstad" wrote: >> >>> I have a control that I need to remove some properties from. I have >>> marked >>> them obsolete so that the rest of the dev team can continue to work, >>> however, if they delete them, it automatically regenerates them in the >>> auto >>> generated code. Is there a way to mark them so they dont re-generate >>> those >>> properties? >>> >>> I dont want to just remove them, because I dont want everyone to have >>> compile errors until they are fixed. >>> >>> Thanks, >>> >>> Rick >>> >>> >>> > >
Installation Error: Application validation did not succeed. Unable to continue
what is Xtreme Sample Database Data Source with ReportViewer DataGrid Custom Styles Help needed using sample RS232 class to read from serial port Multithreading and ActiveX Small bit of code from VB6 to VB.net - desperate need of help How display Result from sqlCommand select in the Datagridview BackgroundWorker and 'freezing' application set back ground image to stretch |
|||||||||||||||||||||||