Welcome to Dream.In.Code
Become a VB Expert!

Join 149,487 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,330 people online right now. Registration is fast and FREE... Join Now!




folder in vb

 
Reply to this topicStart new topic

folder in vb, ?????

hyteck
30 Apr, 2007 - 10:17 AM
Post #1

D.I.C Head
**

Joined: 15 Apr, 2007
Posts: 89


My Contributions
?can you make a folder in visual basic?.....i mean like the one you get when you make a new folder on desktop or.ect

and if so would it be a windows app or a class library
User is offlineProfile CardPM
+Quote Post

tody4me
RE: Folder In Vb
30 Apr, 2007 - 10:30 AM
Post #2

Only Jenny Craig makes thin clients...
Group Icon

Joined: 12 Apr, 2006
Posts: 1,349



Thanked: 5 times
Dream Kudos: 100
My Contributions
1) yes you can
2) I'm guessing that you are referring to .NET, and it depends on what you want to do, do you want to create a application and put the code in there to handle creating the folder, or do you want to use a class library which is re-usable? Class libraries are not executable.
User is offlineProfile CardPM
+Quote Post

hyteck
RE: Folder In Vb
30 Apr, 2007 - 10:39 AM
Post #3

D.I.C Head
**

Joined: 15 Apr, 2007
Posts: 89


My Contributions
im using vb2005 and im trying to make a password protected folder that i can put files in,i have the password code that lets me open form2 from form1 if the passwords right,now i just need to find out how to make a folder that you cant get to from the address bar but can still hold files

can you add files to the data source after the app has been publish

do you have an idea of what i need to do



thanks

This post has been edited by hyteck: 30 Apr, 2007 - 10:58 AM
User is offlineProfile CardPM
+Quote Post

kaufman
RE: Folder In Vb
30 Apr, 2007 - 12:08 PM
Post #4

New D.I.C Head
Group Icon

Joined: 29 Apr, 2007
Posts: 37


Dream Kudos: 25
My Contributions
MAYBE!, i have the code for you
hehe i just started vb so i wouldnt count on this being rihgt but..
the best way to learn is to be wrong.

CODE

Dim File = NewFolderDialog()
Save File On Desktop


i really doubt its right.

This post has been edited by kaufman: 30 Apr, 2007 - 03:13 PM
User is offlineProfile CardPM
+Quote Post

tody4me
RE: Folder In Vb
1 May, 2007 - 05:52 AM
Post #5

Only Jenny Craig makes thin clients...
Group Icon

Joined: 12 Apr, 2006
Posts: 1,349



Thanked: 5 times
Dream Kudos: 100
My Contributions
using the System.IO namespace, there is a File object there with a Create method. So it would be something like

CODE

Imports System.IO
<in function code somewhere>
...
File.Create(<file name variable>)


Same thing applies to creating a directory, same syntax i believe also.
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Folder In Vb
1 May, 2007 - 09:03 AM
Post #6

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,302



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
You are absolutely correct, tody4me. Although you still need to create in VB the correct type of object. In this case, for folders, you need a DirectoryInfo object.

You can find an example at the following link.
Creating and Deletig Folders in VB.NET.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 04:57PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month