The problem that I have is this: I open pages into the editor with a listBox that is populated from a directory. When I first start the app and click on a file to open in the editor it works fine. When i try to open another file into the editor it does nothing.
This is my code:
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
String file = listBox1.SelectedItem.ToString();
HTMLEditor.DocumentText = System.IO.File.ReadAllText(file);
}
How would I reset the editor "if that is what i should do" to open another file after I have opened the first one?






MultiQuote

?




|