2 Replies - 435 Views - Last Post: 03 February 2012 - 09:18 AM Rate Topic: -----

Topic Sponsor:

#1 LarsB  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 04-August 11

Rearrange Settings in VB.Net 2010

Posted 01 February 2012 - 05:55 PM

How do I rearrange the Settings variables in VB.Net 2010 to be near the ones they are related to?
I edited the app.config file to rearrange them, but when VB loaded again they were still
shown in the old order.
Is This A Good Question/Topic? 0
  • +

Replies To: Rearrange Settings in VB.Net 2010

#2 demausdauth  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 162
  • View blog
  • Posts: 563
  • Joined: 03-February 10

Re: Rearrange Settings in VB.Net 2010

Posted 02 February 2012 - 10:33 PM

Why should it matter what order the Settings variables are in? When you use them in code you are/should be using My.Settings.{PropertyName} not an indexed way. I believe you could by why make it so much harder on yourself?
Was This Post Helpful? 0
  • +
  • -

#3 LarsB  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 04-August 11

Re: Rearrange Settings in VB.Net 2010

Posted 03 February 2012 - 09:18 AM

I am using My.Settings.{PropertyName}.

First, when I look at them, I would like to see them in an organized way, not just in the order I thought of them and added them. It turns out that I can get them in alphabetic order by clicking on the "Name" header.

Second, I create an .msi and send it to the systems people, who install it on a workstation dedicated for User Acceptance Testing (UAT). I set it to the Production database when I create the .msi, so it is ready to go to Production after UAT as tested. The systems people edit the .config file to point to the UAT database for testing. It would be good for them if the variable they change were the very first one.

Thanks for your interest.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1