Hi,
I use vb.net, but I think the method will be similar:
You need to add an OpenFileDialog control to your form (from the toolbox), then call the OpenFileDialog1 .ShowDialog method to display it. The filename, including path, which the user has selected will be OpenFileDialog1 .FileName, so you would just set your textbox.Text property to that.
You should also check that the user hasn't cancelled the dialog...
Leave a comment: