private void EnterButton_Click(object sender, RoutedEventArgs e) { if (CharList.Text == null) { System.Windows.MessageBox.Show("You need to enter characters to be removed!"); return; } CharactersToBeDeleted = CharList.Text; //Sets words equal to the characters form the extbox ListOfCharacters = CharactersToBeDeleted.ToCharArray(); //Extracts the characters from the string in //words to be deleted and stores them in the global array CharList.Clear(); //Clears the CharList Array for future use ListBoxChar.DataContext = ListOfCharacters; //Sets ListBox's DataContext to the List of CHaracters array }