I think that all i need is in the question. I placed my method in my Form.Load I can either create a folder or open a SaveFileDialog but not both at once.
If someone could help me please.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
SaveFileDialog lets the user choose a file location that already exists. If not, they can create a folder within the dialog as @Bali suggested.
If you want the user to be able to create a new folder without using the dialog then you’ll need to let the user type the path (e.g. in a textbox). Then you can check to see if the directory exist using
Directory.Exist, and if not, create it usingDirectory.Create.