Advertisement
RedFledio

OpenFileDialog [Updated]

Nov 16th, 2019
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // OpenFileDialog Script:
  2.  
  3. OpenFileDialog openFileDialog = new OpenFileDialog();
  4. openFileDialog.Filter = "Text files|*.txt|Lua files|*.lua|Axon Files|*.axon";
  5. openFileDialog.Title = "Select a script .txt .lua";
  6. if (openFileDialog.ShowDialog() == DialogResult.OK)
  7. {
  8. ScriptBox.Text = (File.ReadAllText(openFileDialog.FileName));
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement