7
Answers

Exception Handling

Ask a question
Drew Taylor

Drew Taylor

17y
2.1k
1

I have a browse button which allows users to browse folders, when the folder has been selected it is put into a textbox, the user then clicks a button to open the folder.

What sort of exception handling do I need for the open button? If you click it when there is no path in the textbox the program stops. I tried something like:

if textbox1.text = true;

but didn't work, please help if you know how!


Answers (7)