![]() |
|
[.NET] [VB.NET]Create a Folder - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] [VB.NET]Create a Folder (/showthread.php?tid=402415) |
[VB.NET]Create a Folder - codepoet - May 4, 2010 This is a VERY basic way to create a folder Lets create 1 Combobox, and let a label over it with the text : "Path:" Under that, make a Label named "Name :" and under that do a Textbox And Under that make a Button with text Create. In Combox collection (list) add like "C:\" or "C:\Program Files" or "D:\", just whatever ur drive is. Double click the Button, we're gonna use filesystem (My.Computer.FileSystem) Code If My.Computer.FileSystem.DirectoryExists(ComboBox1.Text + "\" + TextBox1.Text) ThenIf You Like this tutorial, please check out my other tutorials by clicking ==> H3R3 [img]http://i685.photobucket.com/albums/vv215/blackpearl4/THANKS.gif[/img]
* - cybr - May 4, 2010 Not bad. It could be explained wayy more, though. This is a TUTORIAL. * - Yui Hirasawa - May 4, 2010 Helpful, thank you very much * - codepoet - May 4, 2010 (May 4, 2010 04:41 PM)Slug Wrote: Not bad. It could be explained wayy more, though. not really because this is as easy as vb.net can be while coding like a pro.... * - Drugivian - May 4, 2010 Thanks For this SNippet |