如何解决命名空间可调用计算机搜索功能吗?
| 我在VB.net中,想知道是否存在从控制台应用程序调用搜索的方法。 例如,当用户单击“输入框”上的“取消”时,将打开其计算机的文件浏览器,使他们可以选择保存文件的位置。 我附上一些代码只是为了给我我正在做的事情的想法\'If User Chooses to Auto Search Then
If StorName Is \"\" Then StorName = MsgBox(\"Please Choose the Location you would Like to Have the Information Written to\")
\'Shows msgbox stating to brose for location
Dim MsgBoxResultStor As Object
Dim StoragePlace As String
\'??which Namespace etc to call??
MsgBoxResultStor =
StoragePlace = MsgBoxResultStor
StoragePlace = InputBox(MessageStor,TitleStor,StoragePlace)
最终编辑:改用Save FileDialog,但使用相同的Idea。
Dim MyStream As Stream = Nothing
Dim SaveFileDialog1 As New SaveFileDialog()
Dim msgboxResult As Object
If StorName Is \"\" Then StorName = MsgBox(\"Please Choose the Location you would Like to Have the Information Written to\")
If SaveFileDialog1.ShowDialog() = DialogResult.OK Then
MyStream = SaveFileDialog1.OpenFile()
If (MyStream IsNot Nothing) Then
MsgBoxResult = SaveFileDialog1.InitialDirectory
End If
End If
解决方法
我认为您正在寻找属于3命名空间的2类。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。