FolderBrowserDialog sample  
Author Message
rusold





PostPosted: Visual C# Express Edition, FolderBrowserDialog sample Top

I am trying to use the sample code at

http://www.hide-link.com/

but I can't figure how to put it in the windows application project generated by the IDE. I created an application named FolderBrowserDialogExampleForm. I replaced all of the generated code with the sample code. When I try to build I get the error message:

The namespace <global namespace> already contains a definition for FolderBrowserDialogExampleForm

How should I be using this sample

Rusty



Visual Studio Express Editions42  
 
 
Dave S. Anderson





PostPosted: Visual C# Express Edition, FolderBrowserDialog sample Top

Could you post some of your code Preferably the section of code that is giving you the errors..

One thing you need to make sure is that you do NOT name ANYTHING the same as something else. This will cause major problems in your code.


 
 
S.Sriram





PostPosted: Visual C# Express Edition, FolderBrowserDialog sample Top

Hi

I tried to use the same code from the url mentioned by you. I tried c# code, its works fine.

Here are the steps.

1) once u create a windows form, copy the code from the url.

2) Paste that code after the namespace of your windows form.

3) Then try to run the code.

hope this would help u :)



 
 
rusold





PostPosted: Visual C# Express Edition, FolderBrowserDialog sample Top

I am using VisualStudio express which creates a main.cs containing the entry point - I had to delete the one in Form1 and tinker with main.cs. - Then it worked

I still don't like the misnomer - Form1.cs and the orphanned class Form1

Thanks much