By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,657 Members | 1,539 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,657 IT Pros & Developers. It's quick & easy.

Using CreateWindowEx API to create a RichTextBox

P: n/a
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
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Patrick Blackman" <pa****@videotron.ca> wrote in message
news:eC*************@TK2MSFTNGP10.phx.gbl...
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

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.