Subclassing .net CF TextBox makes properties unavailable?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi smart people,

I subclass CF TextBoxes in order to capture all native windows messages.

My experience is that properties like TextBox1.Text are unavailable after
subclassing, and available again after unsubclassing.

I would prefer having access to all properties, even when the TextBox is
subclassed. Is this possible?

Regards,
Wouter
 
Fist, try to target your queries, not shotgun to every group you can think
of. For example, this has no place in Win32.programmer at all.

As for the answer, most of the CF controls are sealed classes and are not
extensible. If you want to get all windows messages the simplest mechanism
is with a IMessageFilter implementation. The interface is part of the SDF,
and there are examples available online.

www.opennetcf.org/sdf

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 
Back
Top