473,406 Members | 2,387 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,406 software developers and data experts.

System.Environment.SpecialFolder & FolderBrowser class

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 empty dialog with just OK/Cancel buttons.

I have tried uninstalling VS.Net and re-installing but that hasn't made the
slightest bit of difference. This is VS.Net 2003 and I'm using C#.

Any ideas?
Thanks
Nov 22 '05 #1
3 1439
2) FolderBrowser displays an empty dialog with just OK/Cancel buttons.


Do you have the STAThread attribute on your Main method?

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 22 '05 #2

"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:uZ*************@TK2MSFTNGP12.phx.gbl...
2) FolderBrowser displays an empty dialog with just OK/Cancel buttons.


Do you have the STAThread attribute on your Main method?


No I don't, I'll give that a try and get back to you.

Kev
Nov 22 '05 #3

"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:uZ*************@TK2MSFTNGP12.phx.gbl...
2) FolderBrowser displays an empty dialog with just OK/Cancel buttons.


Do you have the STAThread attribute on your Main method?


Thanks, that works.

Kev
Nov 22 '05 #4

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

Similar topics

9
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my...
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: Wiktor Zychla | last post by:
I need a patch that is returned by API's SHGetFolderPath with CSIDL_COMMON_DOCUMENTS. I expected to find it among other enums in Environment.SpecialFolder enumeration. But I cannot find it there. ...
2
by: adish11 | last post by:
I'm using Web Application and want to execute an MSDOS executable with some parameters like this example: software.exe -i -x How do I use System.Diagnostic.Process to execute this .exe with...
1
by: Rainer Faulstich | last post by:
Hi, I need to get the directory i.e. the partition of the system directory for XP . I need to create a file - in the "?:/windows/system32" directory . But in which partition is is located ?....
1
by: codejunkie | last post by:
I am porting my current project to a 64 bit machine and I am having some issues with folder paths that vary between a 64 and 32 machine for any 32 bit application. The below calls return...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
2
by: Anil Gupte | last post by:
Why does System.Environment.SpecialFolder.Personal return "5"? How do I get the actual directory? Thanx, Anil Gupte www.keeninc.net www.icinema.com
1
by: cs_hart | last post by:
I am trying to get at the commandline using system.Environment.Commandline. But that is not defined. If I key in System.Environment. then autocomplete shows only Environment.SpecialFolder I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.