settings problem in C#

Discussion in 'Programming General' started by slashshot007, Jun 21, 2007.

settings problem in C#
  1. Unread #1 - Jun 21, 2007 at 1:42 PM
  2. slashshot007
    Joined:
    May 6, 2006
    Posts:
    164
    Referrals:
    0
    Sythe Gold:
    0

    slashshot007 Active Member

    settings problem in C#

    i'm trying to save a setting so that on startup, my client will automatically load a world. There is a list of all the worlds in a listbox, but i can't figure out how to save the selected world in the listbox to my settings.

    here is what i have, it doesn't give any error, but it doesn't work.
    Code:
    Properties.Settings.Default.startupworld = (int)val(combostartupworld.SelectedText);

    the val thing that I used is this: - creds to flaming idiots
    Code:
    		public static double val(string s)
    		{
    			double D;
    			double.TryParse(s, out D);
    			return D;
    		}
     
< [TuT]Beginners guide to Object Oriented Programming! A MUST READ! | easyRS 0.1 Released! >

Users viewing this thread
1 guest


 
 
Adblock breaks this site