Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

In my Menu, I have an option that when clicked I want it to open a folder, not a program or file.

 

Could someone post that code that can be used to open a folder?

 

Thanks in advance.

Posted

Folderbrowserdialog

 

If you are using .NET 2003 then you can use one of the control that builtin with it. I am assuming you are using VB.NET. Folderbrowserdialog control but be very careful when using this module. It contains a bug that will crash your app if the directory path longer than 135 characters (not everytime though). So it is fairly unpredictable when it crashs. Otherwise, you can use some of the browseforfolder class that will do it much better job but require some code change.

Posted
Hmm.. i thought it would be simplier to do. I just want it to, when clicked actually Open the folder, not inside my program, but as if you double clicked it on your desktop.
Posted

when you open a folder you are essentially running a program.

Windows Explorer is always run when you view a folder on your desktop.

i'm not lazy i'm just resting before i get tired.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...