|
There isn't one...You just have to use the SHBrowseForFolder API Call. There is no way around it.
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
David Stone wrote:
There is no way around it.
There is nothing premade, but nothing to stop you from creating your own (why you would is beyond me though; SHBrowseForFolder is far better than anything I could whip up)
James
- out of order -
|
|
|
|
|
I know that the Ghengis team is trying to implement a wrapper for SHBrowseForFolder...but I haven't been able to get it to work...
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
David Stone wrote:
I know that the Ghengis team is trying to implement a wrapper for SHBrowseForFolder
There is also this[^] implementation by Rama Krishna
James
- out of order -
|
|
|
|
|
Well I'd like to use this control, however it keeps crapping out. (sigh)
It is also way to unweildly to use, IMHO. (though not as unweildly as a WinAPI call)
An unhandled exception of type 'System.InvalidOperationException' occurred in folderbrowser.dll
Additional information: Operation is not valid due to the current state of the object.
_____________________________________________
I have a tendancy to where my mind on my sleeve I have a habit of losing my shirt...
|
|
|
|
|
|
|
Perhaps an identity column? Just a thought
"I dont have a life, I have a program."
|
|
|
|
|
How do I get version info of my Windows Forms App to display it in about box.
I know there is this [assembly: AssemblyVersion("1.0.0.*")]
in my Assemblyinfo.cs. Now what?
Sorry for such a simple stuff, but .... you know.
|
|
|
|
|
Hi!
You can use Application.ProductVersion in your assembly to get the product version - but I don't know about versions of assembly files.
Cheers
HTH
Martin
"Situation normal - all fu***d up"
Illuminatus!
|
|
|
|
|
Have a look at the AssemblyName class
"I dont have a life, I have a program."
|
|
|
|
|
Build .Net app, and take it to not .NET box. Receive error DLL MFC70.d;ll could not be found. Is there a way to build in release mode so that it will have whatever files it needs no matter what box I take this program to? I want to avoid using an installation program.
|
|
|
|
|
Yes: under Project Properties/General tell it to only link to static libraries
Your incessant rantings indicate you have a brain the size of a pea, and the mental capacity of a bag of hammers. - John Simmons
|
|
|
|
|
hey wait does this mean that when I distribute a c#/.net desktop app, it can be run on a pc that doesn't have all of .net installed? I thought the entire runtime was required to have any .net app run...
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
Bog wrote:
hey wait does this mean that when I distribute a c#/.net desktop app, it can be run on a pc that doesn't have all of .net installed?
I think you can't sadly.......
Bog wrote:
I thought the entire runtime was required to have any .net app run...
Yep!
So i would suggest looking into bootstrap[^] projects
HTH
"Creating tomorrow's LEGACY systems today.....
.... One CRISIS at a time!" -- Unknown
"If you build it....
.....BUGS will come!" -JB
this.Dispose();
"A Bug is a piece of code that knows whatz itz purpose" - I Dunnnnooooooo
|
|
|
|
|
What is the best way to create a singleton object in C#? I want an instance of my cache object to be shared by all the threads in my process. The process also happens to be an NT service. How does the garbage collection affect the singleton?
|
|
|
|
|
|
See this article:
Exploring the Singleton Design Pattern
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/singletondespatt.asp
The recommended solution, addressing all threading issues looks like this:
.NET Singleton Example
sealed class Singleton
{
private Singleton() {}
public static readonly Singleton Instance = new Singleton();
}
Sample Singleton Usage
sealed class SingletonCounter {
public static readonly SingletonCounter Instance =
new SingletonCounter();
private long Count = 0;
private SingletonCounter() {}
public long NextValue() {
return ++Count;
}
}
class SingletonClient {
[STAThread]
static void Main() {
for (int i=0; i<20; i++) {
Console.WriteLine("Next singleton value: {0}",
SingletonCounter.Instance.NextValue());
}
}
}
Kevin
|
|
|
|
|
Great link, thanks a lot
i had been using the following method all this time
public class Singleton
{
private Singleton();
private static Singleton singleton = null;
public GetSingleton()
{
if(singleton == null)
{
singleton = new Singleton();
}
return(singleton);
}
}
but the MSDN method seems much cleaner.
May the Source be with you
Sonork ID 100.9997 sijinjoseph
|
|
|
|
|
I would like some help. I need source code that will recursively search the registry and delete text found. It would need to work on 95/98/NT/XP/2000. Any ideas? Any help is appreciated.
Thank You,
Derek
|
|
|
|
|
I am not sure anyone is willing to share any code like that. Have you figured out that if you don't use safely and properly such code, you could break the entire operating system of end-users ?
Back to real work : D-17.
|
|
|
|
|
Yes, but in my partular case the people that willo be using this are not end users, and are Microsoft Certified individuals, so That is not an issue. Any idea where such code could be found?
|
|
|
|
|
Derek Smigelski wrote:
are Microsoft Certified individuals, so That is not an issue.
Are you sure about that? The ten finger virus can infect anyone, but being MCP's they should be comfortable with the registry editor already!
"I dont have a life, I have a program."
|
|
|
|
|
Im sure it should be easy with the Registry and RegistryKey classes...and a bit of recursion. I wont test it though...
"I dont have a life, I have a program."
|
|
|
|
|
I'm new. Can you provide anyhelp or code? I will test it.
|
|
|
|