Problem with Ctrl+V in TextBox from .NETCF SP2+

M

mdawid

Hi,

The problem is I have got an external application for bar code
scanning, which reads a bar code and paste it to the control in my
application by using Ctrl+V key sequence. It takes me a while to figure
it out that the problem concerns only .NETCF 1.0 SP2+.

I have checked the sequence of messages that are coming through message
loop using OpenNETCF.Windows.Forms.ApplicationEx class and it seems to
me that the sequence is the same in .NETCF 1.0 SP1 and .NETCF 1.0
SP2/SP3. The only problem is that TextBox control from .NETCF 1.0 SP2+
does not react on Ctrl+V key sequence.

Can someone confirm this strange behavior/bug in .NETCF SP2/SP3?


Please note that Ctrl+V still works without any problems in
applications not using .NETCF


Regards,

Marcin Dawid
 
P

Peter Foot [MVP]

..NETCF SP2 and onwards support the KeyUp,KeyDown and KeyPress events on
controls, so you should be able to catch them by listening for these events
rather than using the ApplicationEx, in fact this is probably the reason
they never reach ApplicationEx.

Peter
 
M

mdawid

....and It seems to be a workaround for my problem, because I am going
to catch the WM_KEYDOWN or WM_CHAR message and send WM_PASTE message to
the control.

However there is one thing I do not understand: why Ctrl+V seqence
works perfectly with TextBox control in .NETCF 1.0 SP1 and earlier but
it just does not work in .NET 1.0 SP2 and SP3? I do not see any
fixes/improvements in release notes for SP2 and SP3.
 

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