I am using this code inside a button. When clicking the button I browerDialog appears.
I can now browe to a folder and press OK. The Directory will be inserted in the textBox1.
What I now want to do is this:
Inside of this Folder I have a .txt File. I want this name to appear in the textBox instead.
I know that I have to use FindFirstFile() for this but I really dont know how to start. I have red about 10 examples but cant really understand what my first thing should be to do.
folderBrowserDialog1->ShowDialog(); this->textBox1->Text = folderBrowserDialog1->SelectedPath;