How to call "File Open Mode Dialog box in your code?

xiaoxiao2021-03-06  52

How to call "File Open Mode Dialog box in your code?

Vb.net code as follows: Dim infoFile As System.Diagnostics.Process infoFile = New System.Diagnostics.Process () infoFile.StartInfo.ErrorDialog = True infoFile.StartInfo.FileName = "e: /photo/4.jpg2" Infofile.start ()

Description:

1. ErrorDialog Attributes must be set to true2, the file specified by the filename property value must exist, and the file is unable to open a certain open mode. For example: suffix is ​​.jpg2.

phenomenon:

1. If the retrore is called .jpg, the "file open mode dialog" will not pop up, but directly to view the tool directly to see the tool.

Thinking:

1. Is there a more direct way to call the "File Open Mode Dialog" without setting the suffix of the file as .jpg2? 2, please expert guidance, thank you!

转载请注明原文地址:https://www.9cbs.com/read-121116.html

New Post(0)