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

Scott LysleRank #49 · 31K reputationPosted Jan 6, 2007, 9:32 PM EST
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 LysleRank #49 · 31K reputationPosted Jan 6, 2007, 9:32 PM EST
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
Ruta Karyakarte23 reputationPosted Jan 7, 2007, 7:43 PM EST
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 Karyakarte23 reputationPosted Jan 7, 2007, 7:43 PM EST
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 LysleRank #49 · 31K reputationPosted Jan 10, 2007, 1:45 AM EST
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 LysleRank #49 · 31K reputationPosted Jan 10, 2007, 1:45 AM EST
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 Karyakarte23 reputationPosted Jan 13, 2007, 11:49 PM EST
So please try in that.
Ruta Karyakarte23 reputationPosted Jan 13, 2007, 11:49 PM EST
So please try in that.
Scott LysleRank #49 · 31K reputationPosted Jan 14, 2007, 10:48 AM EST
Import the reference for System.ComponentModel and try it again. I checked it in 2003 and it works.
Scott LysleRank #49 · 31K reputationPosted Jan 14, 2007, 10:48 AM EST
Import the reference for System.ComponentModel and try it again. I checked it in 2003 and it works.
Ruta Karyakarte23 reputationPosted Jan 14, 2007, 8:09 PM EST
Because I already tried that.
Ruta Karyakarte23 reputationPosted Jan 14, 2007, 8:09 PM EST
Because I already tried that.