Using CreateWindowEx API to create a RichTextBox

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top