Re: Trying again: app.config's don't work for me...project attached

Tech-Archive recommends: Fix windows errors by optimizing your registry



So,

No one is willing to take a look and offer some suggestions?

Keith

"Keith" <keith@xxxxxxx> wrote in message
news:%23F73D4n5GHA.3920@xxxxxxxxxxxxxxxxxxxxxxx
OK,

Since I can't seem to get app.config's to work for me, and there seems to
be a fair amount of confusion about what I'm actually asking, I've decided
to attach a simple project that should clear things up. The project is a
basic Windows Forms app that has one label that is bound to a setting in
app.config, and a series of MessageBoxes that display the same setting as
the label, but each time retrieved using a different method.

Most methods fail, and I'm trying to find out why.

I'm using the designer to add settings to the Settings.settings file, the
(properly named) app.config file gets placed in the output directory when
the project is built. The bound label properly shows the correct value
and the correct value is also retrieved if the
Properties.Settings.<settingname> syntax is used, even if the app.config
is hand-edited to change the setting's value.

All other methods fail.

I'd really appreciate it if someone could take a look at the project and
tell me what I'm doing wrong.

Thanks!

Keith

P.S. I'm using VS2005 and C# on WinXP SP2, totally current.






.



Relevant Pages

  • Ping Randy Birch?
    ... Recursive File Search for Single or Multiple File Types ... I'm forbidden to display it here by the notice in the code, ... I tried to put a "working" label on the form so I'd know I clicked ...
    (microsoft.public.vb.general.discussion)
  • Label will not display NEW records frm another (bound) form.
    ... When I add the name of a new individual in a, bound form, it will not display ... that person’s name in a label control of a second unbound form. ... try to add NEW entries that I the label control will not work/refresh. ... past Registrations. ...
    (microsoft.public.access.formscoding)
  • RE: Trouble displaying info from access db
    ... Is lblSubName the name or your label? ... not getting the Subject Code to display in the Label? ... Private Sub Form1_Load(ByVal sender As System.Object, ... Dim intRecordCount As Integer ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: vb.net search network drive
    ... files to display what I have above. ... has something to do with how you test a String value... ... Why not just place a Label above your ListBox, ... String.Format("There are also whatever files waiting to be sent", ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Sections in repeater
    ... Setting "display: ... Dim lblSection As Label ... If lastCity = c.City Then ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)