Posted
Hey can anyone help me with the open file button code please.
Replied
      // Displays an OpenFileDialog so the user can select a LUA. Â
      OpenFileDialog open = new OpenFileDialog();
      open.Filter = "Text Files|*.txt|Lua Files|*.lua|Lua-C Files|*.luac";
      open.Title = "Select a script";
      // Show the Dialog. Â
      // If the user clicked OK in the dialog and Â
      if (open.ShowDialog() == DialogResult.OK)
      {
REPLACETHISWITHYOURTEXTBOXNAME.Text = File.ReadAllText(open.FileName)
  }
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post