Private vMediaSize As String
<WebBrowsable(True)> _
<Personalizable(True)> _
Public Property MediaSize() As String
Get
Return vMediaSize
End Get
Set(ByVal value As String)
vMediaSize = value
End Set
End Property
How do I change this property's WebBrowsable attribute from True to False or vice-versa at runtime?
If you want to set the webBrowsable attribute at run time, you can try to realize it through ICustomTypeDescriptor.GetProperties(). For details about it, please check the links below:
rogerwithnel...
Member
65 Points
275 Posts
Set the WebBrowsable Attribute to true or false at run time
Apr 27, 2012 03:46 PM|LINK
I have this property:
Private vMediaSize As String <WebBrowsable(True)> _ <Personalizable(True)> _ Public Property MediaSize() As String Get Return vMediaSize End Get Set(ByVal value As String) vMediaSize = value End Set End PropertyHow do I change this property's WebBrowsable attribute from True to False or vice-versa at runtime?
Your help would be much appreciated.
Thanking you in anticipation.
Roger
Catherine Sh...
All-Star
23382 Points
2490 Posts
Microsoft
Re: Set the WebBrowsable Attribute to true or false at run time
May 04, 2012 06:17 AM|LINK
Hi rogerwithnell,
If you want to set the webBrowsable attribute at run time, you can try to realize it through ICustomTypeDescriptor.GetProperties(). For details about it, please check the links below:
http://msdn.microsoft.com/en-us/magazine/cc163816.aspx
http://msdn.microsoft.com/en-us/magazine/cc163804.aspx
In addition, you can follow the similar thread below:
http://stackoverflow.com/questions/1440108/setting-value-of-browsableattribute-at-runtime
Best wishes,
Feedback to us
Develop and promote your apps in Windows Store