473,395 Members | 1,637 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,395 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 1307
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: 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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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
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
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...

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.