You can extend the SettingsManager in .Net (search for the SettingsProvider class). It allows you to implement your own read/save mechanism for settings. Some links: Google Some random results from google: VB.Net example saving all settings in seperate files C# example writing to .ini file a forum thread trying to implement a SettingsProvider Jelle
Jelle Hissink
Posts
-
Serialization vs Binary File -
How to change Language? [modified]A different solution could be: - Use the visual studio designer to localize the form (search for "localizing vb.net forms" on google) - Then set the System.Thread.CurrentCulture to the value you want in the combobox selection changed event. - On every control you could reapply the localized resources: (translated to vb.net, not compiled so it may contain some small errors)
Dim resources as System.ComponentModel.ComponentResourceManager = _ new System.ComponentModel.ComponentResourceManager(GetType(YourForm)) For Each c as Control in Me.Controls resources.ApplyResources(c, c.Name) Next
Regards, Jelle Hissink -
array of bit in c#....Have a look at BitArray my first google result: Some BitArray example Good luck, Jelle Hissink -- modified at 18:53 Sunday 9th September, 2007
-
Serialization vs Binary FileMark, BinaryReader/Writer should be much faster, however as you are using it only on a small settings file that will propably only be read at startup and saved only when the user changes something. The BinaryFormatter should be fine. However writing your own file format is somewhat additional work, it simplify upgrades of your software. The formatter might fail when you add, change or remove fields in your settings. Why can't you use System.Configuration do the work for you, it was made to handle settings (stored in .config files so you can put them on your USB stick). Regards, Jelle Hissink