473,785 Members | 2,639 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
ConfigurationSe ttings.AppSetti ngs.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 1338
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
ConfigurationSe ttings 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
ConfigurationSe ttings.AppSetti ngs.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******* *******@tk2msft ngp13.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
ConfigurationSe ttings 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.a ppSettings.
(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
1312
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 below... --
4
3377
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 class properties and also to be available as a 'Dynamic' property so that I could control it from the application config file. The new property is not shown, but the properties inherited from the base class are I cannot find any reference to how...
9
10904
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 the wheel, right? Everything so far is working well with the Active Directory. The problem I am having is with adding File Permissions to a directory. I am currently using some code courtesy of "Willy Denoyette "
2
1240
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 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.
6
1722
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 a way to do such a thing in C#, not suggesting that C# should be able to do things that C++ did (no need to start any wars here) for example, if i have:
3
2228
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 create the virtual directory manually it will shown up while adding web reference. I have used the following code to create it
7
22498
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 added an entry to the executable's .exe.config file to specify the URL, and under the 1.1 framework this worked well. Unfortunately, this is not working under the 2.0 framework. I see in the Reference.cs file under the web service reference the...
3
6694
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 with the html <img> tag), I can make the image visible or not, i.e. '<img style="visibility='hidden'" src='xxxx'/>'. But if I create the image dynamically with javascript: new Image() then try to modify the style, Safari chokes, and the Debug...
11
3557
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 IQueryable<TLessThan<T>(this IQueryable<Tsource, string property, object value); For example var q = db.Customers.LessThanOrEqual( "City", "London" );
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9481
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10336
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10155
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10095
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9953
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8978
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
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 we have to send another system

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.