Question about ClipBoard using context menu

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

Guest

hello ,
how to keep the high light selected data in textbox when my context
menu pop-up ?
The same function can work in the main menu situation, but not work in
context menu because my selected area in the textbox disappeared.

Who can give me a favor... thanks

Jerry.
 
Jerry
try...

TextBox.SelectAll
before and after popUp.

This may be some sort of a bug in compact framework as I have another thread here 'SelectAll not working - sometimes!' which I cannot for the life of me decipher.
If it is a bug, it should be addressed very quickly by MS as the keboard of a device needs selectAll to work to avoid unecessary use of the stylus.
Let me know how you get on.

Marc
 
Marc/Jerry

If memory serves there is indeed an issue, as yet unaddressed,
concerning highlighted text in textboxes not staying highlighted -
something to do with the focus event resetting the select length to '0'
I think.


Paul
 
Thanks Marc, appreciate your reply

When the popup event occur , the TextBox.SelectionLength return to the value "zero".
I don't know why, but someone says that is the bug of CF 1.0 and fixed on SP2, is it ??

If it is the true, I have to modify the trigger click from context menu to form's main menu.

jerry.
 
I just did a quick check - using CFsp2.

SelectAll on textboxes does work, but the selection gets reset to
nothing if the Focus event for the textbox gets fired.


Paul
 
Back
Top