使用folderbrowserdialog搜索 [英] searching using a folderbrowserdialog

查看:91
本文介绍了使用folderbrowserdialog搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧我一直在寻找一些程序的帮助我正在写我应该使用folderbrowserdialog但我似乎无法让它让我搜索它然后保存到一个新的地方可以帮助一些人class =h2_lin>解决方案

您好,


如果您收到任何错误,请指定您的编码吗?


您可以使用

搜索FolderBrowserDialog1.showDialog


并使用

FolderBrowserDialog1.SelectedPath






如果您收到任何错误,请指定您的编码吗? />

您可以使用

搜索FolderBrowserDialog1.showDialog


并使用
$ b $获取路径b FolderBrowserDialog1.SelectedPath



i我没有错误我找不到代码让它做任何事情

这里是代码:


Private Sub Buttonsource_Click(ByVal sender As System.Object,ByVal e As System.EventArgs)Handles Buttonsource.Click

If FolderBrowserDialog1.ShowDialog()= DialogResult.OK然后

TextBoxXSource.Text = FolderBrowserDialog1.SelectedPath

结束如果

如果CheckBoxsearch.Checked那么

否则

结束如果

结束子


if和else用于复选框


我说不清楚我的意思是使用folderbrowserdialog


搜索certian文件类型

OK i have been looking for some help on a program i am writing i am supposed to use a folderbrowserdialog but i cant seem to get it to let me search with it and then save to a new place can some one help

解决方案

Hi,

Can you please specify your Coding if you are getting any error?

You can search using
FolderBrowserDialog1.showDialog

And get the path selected using
FolderBrowserDialog1.SelectedPath


Hi,

Can you please specify your Coding if you are getting any error?

You can search using
FolderBrowserDialog1.showDialog

And get the path selected using
FolderBrowserDialog1.SelectedPath

i am not erroring out i cant find the code to get it to do anything
here is the code:

Private Sub Buttonsource_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Buttonsource.Click
If FolderBrowserDialog1.ShowDialog() = DialogResult.OK Then
TextBoxXSource.Text = FolderBrowserDialog1.SelectedPath
End If
If CheckBoxsearch.Checked Then
Else
End If
End Sub

The if and else are for a check box


i made it unclear i mean searching for certian file types using the folderbrowserdialog


这篇关于使用folderbrowserdialog搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆