thiago costa

thiago costa

  • 0
  • 319
  • 0

How to get Value of selected textbox line to string?

Jul 21 2013 4:41 PM
Hello there guys.

I have a multiline text box. Like this:


So, I have a double click event (currently has wrong code)

I want the string _selectedline to be = the current selected line +".txt, so that, when I doubleclick on an specific line, it will open for example 99665588.txt

The code below is good, but I don't know how to get the string value of the selected line of the textbox.

Thanks Guys

   private void TB_result_MouseDoubleClick(object sender, MouseEventArgs e)
            string _selectedline = ""

Related Solved Previous Thread

Answers (7)