private void button_Click_1(object sender, RoutedEventArgs e) { if (Findtextbox.Text != "") { HexEdit.FindFirst(Findtextbox.Text); } else { MessageBox.Show("Enter string to find"); } }