473,378 Members | 1,382 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,378 software developers and data experts.

Adding dynamic properties to a console app

Newbie here.

I want to use a .config file with my simple console app, but no matter
what I do I cannot get the "dynamic" rollout in my properties window.

In the end I gave up and coded the calls to
ConfigurationSettings.AppSettings.Get() myself, but my problem now is
creating the config file. It looks like I'll have to do that manually
too.

Am I missing something fundamental? I tried creating a windows app,
but couldn't get "dynamic" in that either, except for controls that I
dragged onto the form.

Thanks,
Lister
Jul 21 '05 #1
2 1306
By default the VS.Net IDE only shows the dynamic rollout for some
controls and components that are designed visually. For any other
dynamic properties you will have to code it yourself using
ConfigurationSettings as you have. The config file will also have to be
written manually. This links shows you some examples of how it is done

http://msdn.microsoft.com/library/en...asp?frame=true

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
listerofsmeg wrote:
Newbie here.

I want to use a .config file with my simple console app, but no matter
what I do I cannot get the "dynamic" rollout in my properties window.

In the end I gave up and coded the calls to
ConfigurationSettings.AppSettings.Get() myself, but my problem now is
creating the config file. It looks like I'll have to do that manually
too.

Am I missing something fundamental? I tried creating a windows app,
but couldn't get "dynamic" in that either, except for controls that I
dragged onto the form.

Thanks,
Lister

Jul 21 '05 #2
Sijin Joseph <si***************@hotmail.com> wrote in message news:<ue**************@tk2msftngp13.phx.gbl>...
By default the VS.Net IDE only shows the dynamic rollout for some
controls and components that are designed visually. For any other
dynamic properties you will have to code it yourself using
ConfigurationSettings as you have. The config file will also have to be
written manually. This links shows you some examples of how it is done

http://msdn.microsoft.com/library/en...asp?frame=true

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph


Thanks, it is as I feared.
I now have it working, but for the record I had to add a config file
to the project using "Add->Add New Item". Before doing this I created
the config file manually in the debug folder, but when I built the
app, VS.Net always deleted it!!!!!

I was also unsure whether the config XPath would have to be set up in
the app somehow, but it appears to default to
configuration.appSettings.
(Note the case, I struggled for ages because I pus a capital A in
appSettings)

Cheers,
Lister
Jul 21 '05 #3

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

Similar topics

3
by: Stephen Gennard | last post by:
Hello, I having a problem dynamically invoking a static method that takes a reference to a SByte*. If I do it directly it works just fine. Anyone any ideas why? I have include a example...
4
by: Richard Abraham | last post by:
I have created a new class ServiceTimer based upon the .NET System.Timers.Timer class. This has a new property CollectionIntervalMinutes which I expected to be added to the 'Behavior' section of the...
9
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent...
2
by: listerofsmeg | last post by:
Newbie here. I want to use a .config file with my simple console app, but no matter what I do I cannot get the "dynamic" rollout in my properties window. In the end I gave up and coded the...
6
by: jason | last post by:
hello everyone, is there any way in C# to perform dynamic property discovery? i know such a thing was possible in C++ template code, but it was kind of an ugly mess. i'm just curious if there is...
3
by: Kiran | last post by:
Hi, If I create a Virtual directory with application name programmatically it will not show up in the available web services while adding web reference(Dynamic discovery fails). Where as if I...
7
by: Mike Livenspargar | last post by:
We have an application converted from v1.1 Framework to v2.0. The executable references a class library which in turn has a web reference. The web reference 'URL Behavior' is set to dynamic. We...
3
by: Joe Cox | last post by:
I am having a problem with style properties for dynamic images in Mac OS X Safari. By dymanic images, I mean images allocated with the javascript 'new Image()' call. With static images (created...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.