it's ok, and works, thanx....
but ot original question, more simple...
let's say i have a class
class baseclass
{
...
public int someProperty
{
....
}
}
and now i create new class, there i use "someProperty", but don't want the
users of my class use it, not in design time, not in real time....
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:uy**************@TK2MSFTNGP12.phx.gbl...
Create a designer for your control based upon ControlDesigner and use the
PreFilterProperties method to remove the unneeded properties.
This doesn't affect the control at run-time.
--
Bob Powell [MVP]
C#, System.Drawing
The November edition of Well Formed is now available.
Learn how to create Shell Extensions in managed code.
http://www.bobpowell.net/currentissue.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
Read my Blog at http://bobpowelldotnet.blogspot.com
"David Ichilov" <da*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... i'm tring to write custom control based on Windows.Forms.TreeView
how can i block access to Nodes property?
i use it in my code, but don't want users of my control use it
thanx