• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

Print User Directory Application. User selects drive and folder from combo box and the app creates a txt file with the selected contents

I am creating my first Visual Basic Windows Application. I am a mainframe programmer and my boss is wanting me to learn some VB. He has me creating an application in Visual Basic 2005 express that uses a combo box to display the users disk drives all mapped network drives and local host drives will be displayed. He want the user to select a file from one of the disk have it's contents put into a TXT file. He also wants the user to be able to sort the output file before creating it. He wants the user to select the sort via radio buttons. The user can select sort by Name, Size, Date, and Extension. I also have a text box at the bottom of the form that generates the output file path and when the user clicks the go button the application creates the file. I have the design done I have no clue where to start on coding this thing. He let me take some beginner level online tutorials and I did the famous Hello World app which is very minor in comparison to what I am trying to do here.
0
vvandevender
Asked:
vvandevender
  • 2
  • 2
1 Solution
 
Bob LearnedCommented:
What have you tried?  Where would you like to go?  How can we help without completely answering your question (so you can learn something)?

Bob
0
 
vvandevenderAuthor Commented:
So far I have only tried google and I can't find what I am looking for. I have a combo box created and I have searched for some code to get me started but I can't find anything on google that was of any use. I have tried binding the combo box to a Directory Searcher Component but could not get that to work. I am not sure if that was the correct approach or not. I was just trying something b/c I have no idea..

If I could get pointed in the right direction with some ideas that would be great. That way I could learn something like you said without being given the entire answer.

 The only thing is that I have a strict Pre designed form that I have to stick to. I have to have a combo box and I have to have a list box or some sort of box below it that displays the folders in the drives highlighted in the combo box.  I am sorry I am so clueless on this but like I said I am a mainframer and I am learning so bare with me here. I gotta get my feet wet sometime so I guess this is it.
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
So you select a drive from the combo, and then...

Is the ListBox supposed to have just folders?...just files?...or folders and files?

I ~think~ the "output" is supposed to be the file/folder listing of the currently selected drive in the whatever sort order is specified?

Is the listing of just root files/folders?...or a recursive files/folders listing?
0
 
vvandevenderAuthor Commented:
The list box should then display just the folders after you selected the drive from the combo box. The user should be able to select the folder in the list box and then the app will create the text file. The txt file should be composed of the contents inside the folder.

The output file text box has a browse button beside it. It allows the user to browse through and select the folder on any mapped drive or local disk that the user has access to put the text file it creates. The text file (output file) it creates should contain the contents of the folder selected in the list box. Once the user selects the folder he/she wants to put the text file in. The user will then select the (GO.Button) and the text file is created.
0
 
Bob LearnedCommented:
Interestingly enough, there are three VB6 compatability controls available with VB.NET that might be of some use (DriveListBox, DirListBox, and FileListBox).  They aren't available through the ToolBox by default, but you can add them, by right-clicking on the ToolBox, and selecting 'Add/Remove Items', and finding them on the .NET tab.

Bob
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now