The XML file is the preferred way, replacing the registry and ini files both.
You can find some examples of using XML files in the download from MS in the 101 .NET tutorials at the top of the VB.NET forum or
do a quick search in the VB.NET Forum.