I don't understand why you have multiple instances of a
FolderBrowserDialog. It's a dialog, meaning it is modal, which means that
only one dialog can be shown at a time.
Given this, why do you have multiple instances? Do you have a bunch of
different settings? If this is the case, I would just have a structure or a
class which holds the settings, and key those by whatever name you wish.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<ho****@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I'm trying to create a program that dynamicly saves and loads path of a
FolderBrowserDialog , but I ran into a problem. Since
FolderBrowserDialog is not a Control, therefore it doesn't have
attribute such as Name. How do I get the name of a Component or unique
string to identify each FolderBrowserDialog instances in the my form.
I tried GetHashCode() but that doesn't work out too well.
Any suggestion is apreaciated!!!
Thanks