I have a TextBox
named textbox1
and a Button
named button1
.
When I click on button1
I want to browse my files to search only for image files (type jpg, png, bmp...).
And when I select an image file and click Ok in the file dialog I want the file directory to be written in the textbox1.text
like this:
textbox1.Text = "C:myfoldermyimage.jpg"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…