lidds Posted February 22, 2008 Posted February 22, 2008 I have a propertygrid in my project and in this I have a text/string valve which the user can just enter text in. However I also have a text edit form that I have created, is there a way that I can customise the property value so that the user can enter text as normal but also display a button in the value field that if the user clicks on the button then it will display my custom text edit form form? If someone could help me with this then that would really be appreshiated, I have posted the current code below, and just for reference I am using VB.Net <CategoryAttribute("Text"), _ Browsable(True), _ [ReadOnly](False), _ BindableAttribute(False), _ DefaultValueAttribute("True"), _ DesignOnly(False), _ DescriptionAttribute("Specifies the current font content")> _ Public Property Text() As String Get Return m_Text End Get Set(ByVal Value As String) m_Text = Value End Set End Property Thanks in advance Simon Quote
Administrators PlausiblyDamp Posted February 23, 2008 Administrators Posted February 23, 2008 IIRC you would need to create a UITypeEditor - http://msdn2.microsoft.com/en-us/library/fd3kt7d5(VS.71).aspx has an example and links to further documentation. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
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.