Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (this.listBox1.SelectedIndex != -1)
- {
- this.webBrowser1.Document.InvokeScript("SetText", new object[1]
- {
- (object) System.IO.File.ReadAllText("scripts\\" + this.listBox1.SelectedItem.ToString())
- });
- }
- else
- {
- int num = (int)MessageBox.Show("Please select a script from the list before trying to loading it in tab.", "Name");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement