473,322 Members | 1,522 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

FolderBrowser

I was trying to convert a VB project that contained the class
FolderBrowser to C#. I have added a reference to System.Design, and
the FolderBrowser class now shows up, but when I call

System.Windows.Forms.Design.FolderNameEditor.Folde rBrowser fb = new
System.Windows.Forms.Design.FolderNameEditor.Folde rBrowser();

I receive the error
'System.Windows.Forms.Design.FolderNameEditor.Fold erBrowser' is
inaccessible due to its protection level. Does anyone know off the top
of their head anything that will help me? Thanks.

Nov 21 '06 #1
2 1995
You might have to inherit from FolderNameEditor; check you haven't lost this
in the conversion...

Following compiles, but doesn't show anything too useful...

class Test : FolderNameEditor
{
static void Main()
{
FolderBrowser fb = new FolderBrowser();
fb.ShowDialog();
}
}

Marc
Nov 21 '06 #2
Wow, thanks man. I did inherit from FolderNameEditor. Although I
inherited it into the wrong class, so obvously it didn't work. I got
it going now though. Thanks again.

Nov 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mantorok | last post by:
Hi all Have 2 perculiar problems at the moment: 1) SpecialFolder enum is not being picked up in Intelli-sense (but it is compiling ok when I use this enum) 2) FolderBrowser displays an...
0
by: anna | last post by:
Is it possible to have folder browser dialog within web forms? If yes, how?? My users need to be able to point to a folder on the client side and save files within that folder. Thanks!!
0
by: Sinex | last post by:
Hi, I'm using the folderBrowserDialog control. I set the ShowNewFolderButton property to false. Yet, when the UI comes up, the New Folder button is still there! Anybody experienced the same...
2
by: McKool | last post by:
Hello, I'm having problems with the Folder Browser control. When I call the ShowDialog() function, the Dialog is shown but only with the buttons, I can not see the ListView with the folders. ...
3
by: MAF | last post by:
Does anyone know how to set a specific path for the FolderBrowser object? here is my existing code. private FolderBrowserDialog m_fb = new FolderBrowserDialog(); private DialogResult...
6
by: Justin F. | last post by:
In my app I want the users to be able to select a folder to do their work in. The FolderBrowserDialog is a great way to do this, but I don't want to have a dialog pop up every time they want to...
2
by: jeff | last post by:
dear all, i am using .net 1.0 which don't have the .selectedpath property in FolderBrowser in VB.net . any hint to do it ? thanks.
2
by: Andre Nogueira | last post by:
Hi guys, Since you helped me out the last time I needed - let me thank you for that if I haven't already ;-) - I decided to call for your help yet again. I'd like to be able to open a...
0
by: letibal | last post by:
Hello, I have written a windows service that runs under the LocalSystem account (launched when the computer boots up). This service launches a GUI that contains several...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.