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

Creating dynamic properties

Hi,

I m doing a windows program using VB.net for my school
assignment.

I would like to ask is there a way for me to set a path
(eg: //SamPC/data) as something dynamic such as dynamic
properties in 'web.config' file or '.ini', which allows me
to change the path mentioned above easily with compiling
the whole program again.

I tried 'app.config' but it is not successful because I
don't know the proper way of doing it.

Thanks in advance,

Justin
Nov 20 '05 #1
2 1458
Hi Justin,
If I understand you correctly, you are trying to find a way
to alter the execution of the program dependent on data held externally such
as the contents of an ini file. This meaning that you could go in lets say
with a text editor and change a program path for example without having to
recompile right ?

If the path is likely to change frequelty, you may want to consider
prompting the user on the start of the program to change settings or
continue. Else if this is infrequent you could use some other storage
method. The options available could be:-

The system's registry
And INI file as you suggest
An XML storeage for these options.

All of these could be changed from within the progam itself lets say an
Edit/Options Menu Item which presents the user with a form of options, which
you can edit and save.

Is this what you are thinking of ?

Regards - OHM

Justin wrote:
Hi,

I m doing a windows program using VB.net for my school
assignment.

I would like to ask is there a way for me to set a path
(eg: //SamPC/data) as something dynamic such as dynamic
properties in 'web.config' file or '.ini', which allows me
to change the path mentioned above easily with compiling
the whole program again.

I tried 'app.config' but it is not successful because I
don't know the proper way of doing it.

Thanks in advance,

Justin

Nov 20 '05 #2
* "Justin" <yy****@hotmail.com> scripsit:
I m doing a windows program using VB.net for my school
assignment.

I would like to ask is there a way for me to set a path
(eg: //SamPC/data) as something dynamic such as dynamic
properties in 'web.config' file or '.ini', which allows me
to change the path mentioned above easily with compiling
the whole program again.
Typo? "With" or "without" compiling?
I tried 'app.config' but it is not successful because I
don't know the proper way of doing it.


Configuration Management Application Block
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/cmab.asp>

<http://www.palmbytes.de/content/dotnetlibs/optionslib.htm>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

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

Similar topics

4
by: Gurry | last post by:
Hi there I would like to write a javascript function that creates a drop-down list dynamically. I read on the docs that most HTML controls can not be created on run-time. what kind of...
2
by: Patrick | last post by:
I want to define a set of web-form templates in XML and render the equivalent web-form with ASP.NET, then process any input server controls on the form. Reading the XML file from Page_load is...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
3
by: cwertman | last post by:
I have a question regarding dynamic properties. I have an Object say Account --Id --Prefix --Fname --Lname --Suffix
5
by: Guillaume BRAUX | last post by:
Hello, What I want to do is to add a userControl to a form class witch is a different class from the one the button is generated. For example, I want to instanciate a label in "class1" and add...
0
by: vnu | last post by:
Hi, Hi, I am working in .net emvironment using vs2005 and vb.net as the language. In one of my project, I need to display the properties of a com object which has dynamic properties(late bind...
9
by: Tarscher | last post by:
hi all, I have this seemingly simple problem. I have lost a lot of time on it though. When a user selects a value from a dropdownlist (static control) a dynamic control is generated. I have...
13
by: jkimbler | last post by:
As part of our QA of hardware and firmware for the company I work for, we need to automate some testing of devices and firmware. Since not everybody here knows C#, I'm looking to create a new...
11
by: Andrus | last post by:
I created dynamic extension methods for <= and < SQL comparison operators: public static IQueryable<TLessThanOrEqual<T>(this IQueryable<Tsource, string property, object value); public static...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.