>>
>>I have a problem. The Down and Up arrows images look like simple properties and don't allow me to Browse for the images as, for instance, other native image properties allow. What should I do to make them "Browsable" ?
>>
>
>It's not required - you can edit the code directly via an attribute in the ASPX file for that control. But if you really want to add it, it's done via attributes.
>
>Add an attribute something like this to the property:
>
>
>[Category("Appearance")]
>[Browsable(true)]
>[Bindable(false)]
>[DefaultValue("")]
>[PersistenceMode(PersistenceMode.Attribute)]
>[Editor("System.Web.UI.Design.ImageUrlEditor", "System.Drawing.Design.UITypeEditor")]
>public string PropertyNameHere
>{
> get {} // Whatever
> set {}
>}
>
Yes, that's exactly what I'm reading on righ-now from
http://www.c-sharpcorner.com/UploadFile/scottlysle/CC_Visio01142007140634PM/CC_Visio.aspx [Editor(typeof(System.Web.UI.Design.UrlEditor)
I'm going to try that, strange that Scott didn't add it in his class - seems like an obvious requirement.
If it's not broken, fix it until it is.
My Blog