Advertisement
GustasRBLX

Untitled

Jun 6th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. if (this.listBox1.SelectedIndex != -1)
  2. {
  3. this.webBrowser1.Document.InvokeScript("SetText", new object[1]
  4. {
  5. (object) System.IO.File.ReadAllText("scripts\\" + this.listBox1.SelectedItem.ToString())
  6. });
  7. }
  8. else
  9. {
  10. int num = (int)MessageBox.Show("Please select a script from the list before trying to loading it in tab.", "Name");
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement