Saving user inputs and change

my software first software is nealry workin and i need to insert a save command. i have two question:

first, is there a simple/fastest way to save everything than coding every textbox,radiobutton,etc... ? eg: SaveSetting(name.Text, "settings", "plantname", 1000) GetSetting(name.Text, "settings", "plantname", "") (also will this work ???)

and when i try to getsetting,software crash and its says that the value "path" i set to nothing...I'm learning over the internet and this is the only way of saving i have found and i just can't find how to make it work :P