473,508 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reflection and My.Settings?

Hi,

Not sure if this is possible, but is it possible to late bind to a setting?
I want to be able to construct a string and then based on the value of that
string, load the setting which goes by that name in my.settings. Anyone know
if this can be done?

Thanks...

-Ben
Sep 12 '06 #1
2 1340
"Ben R." <be**@newsgroup.nospamschrieb:
Not sure if this is possible, but is it possible to late bind to a
setting?
I want to be able to construct a string and then based on the value of
that
string, load the setting which goes by that name in my.settings. Anyone
know
if this can be done?
'My.Settings(<property name as string>)'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Sep 12 '06 #2
Wow, very straight-forward. Thanks...

-Ben

"Herfried K. Wagner [MVP]" wrote:
"Ben R." <be**@newsgroup.nospamschrieb:
Not sure if this is possible, but is it possible to late bind to a
setting?
I want to be able to construct a string and then based on the value of
that
string, load the setting which goes by that name in my.settings. Anyone
know
if this can be done?

'My.Settings(<property name as string>)'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Sep 13 '06 #3

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

Similar topics

7
1690
by: Dave L | last post by:
I am inquiring about the feasability of being able to determine when an object of a certain type is instantiated. I have a base type that I want to be able to determine when each instance is...
6
2022
by: Brad | last post by:
My company is setting up a deployment process for implementing .NET Windows applications. One of the standards we want the process to enforce is verifying that the assembly is built in release...
10
7341
by: Sunny | last post by:
Hi, I have an old problem which I couldn't solve so far. Now I have found a post in that group that gave me an idea, but I can not fully understand it. The problem is: I'm trying to use a...
2
864
by: Jason Coyne Gaijin42 | last post by:
I have seen several people looking for a way to access the Columns collection when using the AutoGenerate = true option. Some people have gotten so far as to find the private autoGenColumnsArray...
1
1505
by: Fredrik Melin | last post by:
Using Framwork 2.0 Im trying to load a page through reflection (To allow developers at the cutomer to override a single page without us knowing it in a precompiled site) This code works fine ...
5
1437
by: glayos | last post by:
Hi all, i have a question about the framework reflection. I have a project with some pages and a component class file. Inside this file I've placed some custom objects. Using the reflection and...
8
3521
by: rowe_newsgroups | last post by:
I know this has to be answered in the archives somewhere, but the search results are just confusing me more :-( Anyways, I authored a control library that contains an Interface definition and...
1
3433
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi Trying to use Reflection to Create a UserControl then get at Interface on UserControl which defines an Event. Then add that Event to EventHandler But looks like I am getting exception on Cast...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7324
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
7382
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...
1
7042
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
7495
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...
0
5627
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,...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1556
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 ...

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.