Hi
I have taken form for property in my project.
And i dont want to display the extra properties wich r inbuilt.
I want to show only selected properties.
Such as in dynamic properties accessible name,accesible role etc. i dont want to show.
how can i achieve this?
Please help me out.
Loading
Ruta KaryakartePosted Jan 15, 2007, 1:09 AM
Because I already tried that.
Ruta KaryakartePosted Jan 15, 2007, 1:09 AM
Because I already tried that.
Scott LyslePosted Jan 14, 2007, 3:48 PM
Import the reference for System.ComponentModel and try it again. I checked it in 2003 and it works.
Scott LyslePosted Jan 14, 2007, 3:48 PM
Import the reference for System.ComponentModel and try it again. I checked it in 2003 and it works.
Ruta KaryakartePosted Jan 14, 2007, 4:49 AM
So please try in that.
Ruta KaryakartePosted Jan 14, 2007, 4:49 AM
So please try in that.
Scott LyslePosted Jan 10, 2007, 6:45 AM
Which version of visual studio are you using? I have done this in VS 2005 and I have tested this example in 2005 and it worked fine. I can check it in 2003 if you are using that IDE.
Scott LyslePosted Jan 10, 2007, 6:45 AM
Which version of visual studio are you using? I have done this in VS 2005 and I have tested this example in 2005 and it worked fine. I can check it in 2003 if you are using that IDE.
Ruta KaryakartePosted Jan 8, 2007, 12:43 AM
Thank u so much for your reply.
I tried it, but it doesn't work as desired. I have included the same overriden property in my control class, still it displays that property in PropertyGrid at run time.
Also there are some properties which are not declared overridable, how to exclude such properties from browasing? Please reply if u have got the solution.
Thanks again.
Ruta KaryakartePosted Jan 8, 2007, 12:43 AM
Thank u so much for your reply.
I tried it, but it doesn't work as desired. I have included the same overriden property in my control class, still it displays that property in PropertyGrid at run time.
Also there are some properties which are not declared overridable, how to exclude such properties from browasing? Please reply if u have got the solution.
Thanks again.
Scott LyslePosted Jan 7, 2007, 2:32 AM
Public Overrides Property BackColor() As System.Drawing.Color
Get
Return MyBase.BackColor
End Get
Set(ByVal value As System.Drawing.Color)
MyBase.BackColor = value
End Set
End Property
Scott LyslePosted Jan 7, 2007, 2:32 AM
Public Overrides Property BackColor() As System.Drawing.Color
Get
Return MyBase.BackColor
End Get
Set(ByVal value As System.Drawing.Color)
MyBase.BackColor = value
End Set
End Property