Results 1 to 2 of 2

Thread: .config help

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Posts
    331

    .config help

    Hello! How do I create a .config file? Also when my application loads say there is a value like startup=1 in there, If the startup=1 then it loads Form1 if startup=2 then it loads Form2. How do I do this?
    Katya Chehova is best!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: .config help

    You add a config file as an item in the solution explorer. You read the config file using the members of the System.Configuration namespace. You would read the relevant value in a Main method and then pass a new instance of the appropriate type of form to Application.Run. I suggest that you read up about the Configuration namespace.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width