Using CreateWindowEx API to create a RichTextBox

  • Thread starter Thread starter Patrick Blackman
  • Start date Start date
P

Patrick Blackman

Has anyone used CreateWindowEX API to create a control in C#? I want to
create the Richtextbox control using this method so I can have better
control over the underlying interfaces to substantial extend the
functionality.

Any Ideas would be appreciated. What I really want to do is create the
control with a limited exposure of properties, if I subclass the RictextBox
in .net , there are just too many properties exposed. In VB we had the
option of choosing which base properties to display.

Any help or example would be appreciate. Thanks
 
Patrick,

Most of the properties on the Control class are virtual. What I would
do is override them and throw InvalidOperationExceptions if people tried to
access them in a whay you don't want.

Hope this helps.
 
Back
Top