473,385 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Folderbrowserdialog Search

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
Mar 13 '07 #1
20 2950
Killer42
8,435 Expert 8TB
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
Is this for a school assignment? What version of VB is it?
Mar 14 '07 #2
vijaydiwakar
579 512MB
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
if this is a school assignment then first try it by urself
and still u'v enay problem then ask us
Mar 14 '07 #3
no its for work and we are using .Net this is thefirst time anyone here has attempted it
Mar 14 '07 #4
we are wanting to get a windows app like a web app here http://www.xefteri.com/articles/show.cfm?id=16 just having problems cause it isn't wokring
Mar 14 '07 #5
Killer42
8,435 Expert 8TB
we are wanting to get a windows app like a web app here http://www.xefteri.com/articles/show.cfm?id=16 just having problems cause it isn't wokring
If you're working in ASP.Net then I think you'll probably find more help in the ASP forum and/or .Net forum. There are people here in VB who are willing to help out, but there's probably not the same level of experience.
Mar 14 '07 #6
If you're working in ASP.Net then I think you'll probably find more help in the ASP forum and/or .Net forum. There are people here in VB who are willing to help out, but there's probably not the same level of experience.
No this is for a windows app but i was to use the web version as a guide
Mar 19 '07 #7
Killer42
8,435 Expert 8TB
No this is for a windows app but i was to use the web version as a guide
The .Net suggestion still applies, though.
Mar 19 '07 #8
SammyB
807 Expert 512MB
No this is for a windows app but i was to use the web version as a guide
Just use the FolderBrowserDialog from your toolbox. It will go into the tray below your form. Select it and press F1 for help. At the bottom, click on FolderBrowserDialog Class. There is an example there. Or see http://msdn2.microsoft.com/en-us/lib...serdialog.aspx
HTH --Sam
Mar 20 '07 #9
tried the .net and there is no help there
Mar 20 '07 #10
SammyB
807 Expert 512MB
tried the .net and there is no help there
What .NET are you using: 2003 or 2005? What language? Are you saying that there is no FolderBrowserDialog in your toolbox? (Right-click, sort alphabetic may help you locate it) If you right-click on the Toolbox and select Choose Items..., then on the NET tab, scroll-down, and in the F's you should have FolderBrowserDialog and it should be checked. If it is missing, then you probably need to reinstall .NET
Mar 20 '07 #11
i am using 2005 and i have a folderbrowserdialog on my form i just cant get it ti code right to search through a directory for a certain file type and if it finds it move it to a new location
plus i have a check box for where it searches sub directories too
Mar 20 '07 #12
SammyB
807 Expert 512MB
i am using 2005 and i have a folderbrowserdialog on my form i just cant get it ti code right to search through a directory for a certain file type and if it finds it move it to a new location
plus i have a check box for where it searches sub directories too
OK, what language? VB, C#,... ?
Mar 20 '07 #13
VB in 2005
Mar 20 '07 #14
SammyB
807 Expert 512MB
VB in 2005
OK, I'll give you an example in a minute.
Mar 20 '07 #15
SammyB
807 Expert 512MB
This should help:
Expand|Select|Wrap|Line Numbers
  1.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         With FolderBrowserDialog1
  3.             .Description = "Select your folder"
  4.             .RootFolder = Environment.SpecialFolder.MyDocuments
  5.             .ShowNewFolderButton = True
  6.             If .ShowDialog() = Windows.Forms.DialogResult.OK Then
  7.                 MsgBox(.SelectedPath)
  8.             End If
  9.         End With
  10.     End Sub
Mar 20 '07 #16
This should help:
Expand|Select|Wrap|Line Numbers
  1.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         With FolderBrowserDialog1
  3.             .Description = "Select your folder"
  4.             .RootFolder = Environment.SpecialFolder.MyDocuments
  5.             .ShowNewFolderButton = True
  6.             If .ShowDialog() = Windows.Forms.DialogResult.OK Then
  7.                 MsgBox(.SelectedPath)
  8.             End If
  9.         End With
  10.     End Sub
thanks this should work
Mar 20 '07 #17
thanks now i just need it to use a text box to make filters
Mar 20 '07 #18
SammyB
807 Expert 512MB
thanks now i just need it to use a text box to make filters
What are filters?
Mar 20 '07 #19
SammyB
807 Expert 512MB
thanks now i just need it to use a text box to make filters
Ahh, never mind. He's refering to another thread, http://www.thescripts.com/forum/thread616134.html

Please post any other replies over there.
Mar 20 '07 #20
the filters are what it searches for in the folder and moves just the specified file type
Mar 20 '07 #21

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Anja | last post by:
I have installed the new Visual Studio 2003 and implemented the FolderBrowserDialog. Everything works fine, if I open the FolderBrowserDialog before opening a Database Connection. If I open...
25
by: | last post by:
Hi, The following code shows the FolderBrowserDialog = broken. FolderBrowserDialog folderDialog = new FolderBrowserDialog(); folderDialog.ShowNewFolderButton = false;...
1
by: alf | last post by:
Hi, I am using a FolderBrowserDialog to allow the user to select a folder as follows: FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog(); folderBrowserDialog1.RootFolder =...
9
by: hhh12347 | last post by:
FolderBrowserDialog crashes on my Windows 2000 computer. Here is a C# test program: using System; using System.Windows.Forms; public class TestForm : Form { FolderBrowserDialog...
0
by: Tommy Clark | last post by:
I am using Microsoft Development Environment 2003 Version 7.1.3088 and .NET Framework 1.1 Version 1.1.4322 SP1. I have an MFC application that we have ported to .NET and have added the...
3
by: Randall Arnold | last post by:
I thought this would be a simple one but I can't quite figure it out. I'm using the FolderBrowserDialog to select a path for file saving. Every time the user changes the path, I want to grab the...
12
by: JohnR | last post by:
I have narrowed a problem down to a simple example. A form with two buttons. One EXIT and one FBD. The exit button does an "END" to end the application. The FBD button does a...
2
by: Marcel Brekelmans | last post by:
Hi, I'm trying to display a MessageBox after a FolderBrowserDialog. I see that it gets displayed, but not activated. The form is not in front and when I have some other forms open the MessageBox...
11
by: computerenigma13 | last post by:
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.