473,797 Members | 3,160 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Environm ent.SpecialFold er & 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 1476
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.o rg> wrote in message
news:uZ******** *****@TK2MSFTNG P12.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.o rg> wrote in message
news:uZ******** *****@TK2MSFTNG P12.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
4965
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 webserver runs that part of the script (see attached file, snippet.php), though, it doesn't go through. I don't get an error message or anything...it just returns a "1" (whereas it should return a "0") as far as I can tell. I have read the PHP...
3
349
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 empty dialog with just OK/Cancel buttons. I have tried uninstalling VS.Net and re-installing but that hasn't made the
0
4245
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. Do I really have to PInvoke SHGetFolderPath in this case? Why someone forgot about this one CSIDL? Is it just an annoying omission or there is a deeper reason for this? what's more: there's a mistake in a MSDN doc. it says:...
2
12064
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 parameters? Could you give me the code lines with this example? Thanks for your answer.
1
8593
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 ?. I think for everyone writing installers this is a "klacks" - i.e. "nothing to think about it" as we call it in germany .
1
3619
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 c:\program files in a 32 bit machine and 64 bit machine. But i am looking for c:\program files X86 folder in the 64 bit machine. How can i implement this in the least number of steps. Can I modify the below call to specify that i am looking for the 32...
3
4035
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 selects? thanks...
2
4226
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
1214
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 must have to set something to have this available in my program. Any help on what?
0
10469
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10209
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9066
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.