Charlotte Foust
cfoust at infostatsystems.com
Thu Sep 17 12:01:32 CDT 2009
Import the System.ComponentModel, then you can apply the browsableattribute <Browsable(False), Bindable(True)> _ Public Property Value() As Object Get Return _value End Get Set(ByVal Value As Object) _value = Value Call RenderValue() RaiseEvent ValueChanged(Me, EventArgs.Empty) End Set End Property You'll have to translate into C# yourself! LOL Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 17, 2009 9:42 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Set value of BrowsableAttribute at runtime Hi All, I wanted to set a value of BrowsableAttribute at runtime: public class MyClass { [Browsable(true)] public int P1 { get; set } ... } I can't find a way how to do that. Any hints, tips and tricks would be greatly appreciated here. Thank you. --Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com