School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
You're Browsing As A Guest! Register Now...
Become an Expert!

Join 358,291 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,459 people online right now.Registration is fast and FREE... Join Now!



folder in vb

52 Weeks of Code Challenge: Android

Week #11 of the 52 Weeks of Code Challenge is Android, you should give it a shot. Click Here!

folder in vb ????? Rate Topic: -----

#1 hyteck  Icon User is offline

  • D.I.C Head
  • PipPip

Reputation: 1
  • View blog
  • Posts: 97
  • Joined: 15-April 07


Dream Kudos: 0

Posted 30 April 2007 - 10:17 AM

?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
Was This Post Helpful? 0
  • +
  • -


#2 tody4me  Icon User is offline

  • Banned
  • Icon

Reputation: 11
  • View blog
  • Posts: 1,398
  • Joined: 12-April 06


Dream Kudos: 100

Re: folder in vb

Posted 30 April 2007 - 10:30 AM

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.
Was This Post Helpful? 0
  • +
  • -

#3 hyteck  Icon User is offline

  • D.I.C Head
  • PipPip

Reputation: 1
  • View blog
  • Posts: 97
  • Joined: 15-April 07


Dream Kudos: 0

Re: folder in vb

Posted 30 April 2007 - 10:39 AM

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 April 2007 - 10:58 AM

Was This Post Helpful? 0
  • +
  • -

#4 kaufman  Icon User is offline

  • New D.I.C Head
  • Icon

Reputation: 0
  • View blog
  • Posts: 37
  • Joined: 29-April 07


Dream Kudos: 25

Re: folder in vb

Posted 30 April 2007 - 12:08 PM

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.

Dim File = NewFolderDialog()
Save File On Desktop



i really doubt its right.

This post has been edited by kaufman: 30 April 2007 - 03:13 PM

Was This Post Helpful? 0
  • +
  • -

#5 tody4me  Icon User is offline

  • Banned
  • Icon

Reputation: 11
  • View blog
  • Posts: 1,398
  • Joined: 12-April 06


Dream Kudos: 100

Re: folder in vb

Posted 01 May 2007 - 05:52 AM

using the System.IO namespace, there is a File object there with a Create method. So it would be something like

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



Same thing applies to creating a directory, same syntax i believe also.
Was This Post Helpful? 0
  • +
  • -

#6 Jayman  Icon User is online

  • Student of Life
  • Icon

Reputation: 298
  • View blog
  • Posts: 9,012
  • Joined: 26-December 05


Dream Kudos: 500

Expert In: Everything

Re: folder in vb

Posted 01 May 2007 - 09:03 AM

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.
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

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

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month