vien11

hi

is any one knows how to change SelectionStart when right clicking textbox. the default property when i right click textbox does not change the SelectionStart.

thanks



Re: Windows Presentation Foundation (WPF) How to: change Textbox selectionStart when right click textbox

LesterLobo - MSFT

could you provide a repro... if the caret moves on a right click it indicates that the selection start has changed. Its possible that you are checking the value before the caret position has changed





Re: Windows Presentation Foundation (WPF) How to: change Textbox selectionStart when right click textbox

AlexTre

try listening to TextBox.SelectionChanged event, you will have the updated select SelectionStart, it is automatically changed






Re: Windows Presentation Foundation (WPF) How to: change Textbox selectionStart when right click textbox

vien11

hi

i 'm working on visual c++ and it doesn't have textbox->selectionChanged event.