Engine252 Posted December 9, 2003 Posted December 9, 2003 hi i'm creating a control or component better that has a property FileName as string this control can be configured in disign time so wat i would like to do is the same as in some Microsoft Controls like when you have to change a color in design time and you click on the small button at the right of the propertygrid item you get a form the makes this possible now i would like it to apear a openfiledialog so the user can browse to it's file and dousn't have to enter the enormes paths these days anyone who can help me out here??? i think it has something to do with <System.ComponentModel.Editor(GetType(System.Windows.Forms.FileDialog), GetType(System.Drawing.Design.UITypeEditor))> _ Public Property FileName() As String but that pease of code dousn't work so HELP ME PLZ I'M STUCK Quote
*Gurus* divil Posted December 10, 2003 *Gurus* Posted December 10, 2003 Stick this on your property. <EditorAttribute(GetType(System.Windows.Forms.Design.FileNameEditor), GetType(System.Drawing.Design.UITypeEditor))> 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
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.