mooman_fl Posted November 19, 2003 Posted November 19, 2003 I would like to know how to get a property that lets me pick a text file at design time from the property list. In other words you get the button with the ... in it and it opens the OpenFile dialog. Also since I have never had to save a custom property in a usercontrol before.... how do I go about saving that filename so that it is the default when the app is compiled and run? I know the first part has to do with the Designer class... not sure on the other one though. Quote "Programmers are tools for converting caffeine into code." Madcow Inventions -- Software for the Sanity Challenged.
*Gurus* divil Posted November 19, 2003 *Gurus* Posted November 19, 2003 Use this attribute on your property: <EditorAttribute(GetType(System.Windows.Forms.Design.FileNameEditor), GetType(System.Drawing.Design.UITypeEditor))> The designer will take care of serialization of your property automatically. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
mooman_fl Posted November 19, 2003 Author Posted November 19, 2003 Thanks again divil.... I had a feelling you had the answer. LOL Quote "Programmers are tools for converting caffeine into code." Madcow Inventions -- Software for the Sanity Challenged.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.