Forum > Coding >

[HELP] Add a open folder button.

Posts: 10

Threads: 5

Joined: Jan, 2019

Reputation: 0

Posted

I want to add a button which when pressed will open a folder.

I also want the txt/lua file chosen to be put straight into my richTextBox1.

I need this because I have a lua executor but i want to add a browse button to it.

If anyone knows how to do this then please reply.

Thanks

  • 0

Posts: 369

Threads: 61

Joined: Apr, 2018

Reputation: 0

Replied

You can have a look at this example (which makes shows the contents of a file in a MessageBox) https://docs.microsoft.com/en-us/dotnet/framework/winforms/controls/how-to-open-files-using-the-openfiledialog-component

  • 0

Posts: 10

Threads: 5

Joined: Jan, 2019

Reputation: 0

Replied

i got it to work

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )