blocking access to base class maethods and functions

  • Thread starter Thread starter David Ichilov
  • Start date Start date
D

David Ichilov

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
 
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
 
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....
 
Back
Top