Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is an example of how to change the decimal character and then restore the original.</p> <pre><code>using System; using System.Security.Permissions; using Microsoft.Win32; [assembly: RegistryPermissionAttribute(SecurityAction.RequestMinimum, ViewAndModify="HKEY_CURRENT_USER")] namespace sampleProgram { public class sampleClass { static void Main() { // open the registry key holding control panel international settings using (RegistryKey international = Registry.CurrentUser.OpenSubKey("Control Panel\\International", true)) { // get and display the current decimal character string original_sDecimal = international.GetValue("sDecimal").ToString(); Console.WriteLine("original sDecimal='" + original_sDecimal + "'"); Console.WriteLine("Press enter:"); Console.ReadLine(); // temporarily change the decimal character string alternate_sDecimal = "@"; international.SetValue("sDecimal", alternate_sDecimal); Console.WriteLine("alternate sDecimal='" + international.GetValue("sDecimal").ToString() + "'"); Console.WriteLine("Press enter:"); Console.ReadLine(); // put back the original decimal character international.SetValue("sDecimal", original_sDecimal); Console.WriteLine("restored original sDecimal='" + international.GetValue("sDecimal").ToString() + "'"); Console.WriteLine("Press enter:"); Console.ReadLine(); } } } } </code></pre> <p>Look here for more information on this topic: <a href="http://msdn.microsoft.com/en-us/library/microsoft.win32.registrykey%28v=VS.90%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/microsoft.win32.registrykey(v=VS.90).aspx</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload