2
A
回答
2
使用SelectedText
屬性(也available in XAML,如果你使用WPF代替的WinForms):
OtherTextBox.Text = FirstTextBox.SelectedText
1
假設你是在談論一個System.Windows.Control
,您可以在SelectionChanged
搶SelectedText
事件。
WPF,WinForms,Silverlight? – 2010-11-08 15:16:52