Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Premium
Feed
Dashboard
Wallet
Achievements
Growth
Network
SharpGPT
Rewards
Register
Login
How to get selected text of a WPF TextBox
WhatsApp
Soft Dev
May 28 2012
14
k
0
Resource
0
Here is a TextBox.
<TextBox Name=
"TextBox1"
>
Here is some text
</TextBox>
This is how to get the selected text:
String selText =
TextBox1
.SelectedText;
WPF TextBox