How do I convert the following VB WinForm to C# WPF?
txtFoo.Text = Strings.Right(txtFoo.Text, 10000)
I cannot find Strings in WPF control class and String in WPF does not have method of String.Right
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could try this:
Of course you need to check if the length of the string is greater than 10000