This looks like a course assignment. If so, then you should write your own code solution. We don't do homework in these forums. We can offer suggestions to help move you in the right direction while you write your program. It isn't entirely clear (to me) what you are looking for when you say you want the longest line from the dictionary. It also isn't clear why textBox2 would always have 12 characters. Assuming you want to find a match for the scrambled word in texBox2, you can try code such as this in your button click event.
char[] ca2 = textBox2.Text.ToCharArray();
Array.Sort(ca2);
string s2 = new string(ca2);
foreach (string s in textBox1.Lines)
{
if (s.Length != textBox2.Text.Length) continue;
char[] ca1 = s.ToCharArray();
Array.Sort(ca1);
string s1 = new string(ca1);
if (s1 == s2)
{
textBox3.Text = s;
break;
}
}