{"id":1103,"date":"2008-05-20T22:17:22","date_gmt":"2008-05-20T22:17:22","guid":{"rendered":"https:\/\/kweaver.org\/cs\/windows-mobil-1\/"},"modified":"2008-05-20T22:17:22","modified_gmt":"2008-05-20T22:17:22","slug":"windows-mobil-1","status":"publish","type":"post","link":"https:\/\/kweaver.org\/cs\/windows-mobil-1\/","title":{"rendered":"Windows Mobile Registry Code"},"content":{"rendered":"<p>I think I got most of what needed at this site:&#160;<\/p>\n<p style=\"margin-top:0;margin-bottom:0;\"><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/cy6azwf7(VS.80).aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/cy6azwf7(VS.80).aspx<\/a>.&#160; Here&#8217;s the code:<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\">&#160;<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\">I defined the information for the key in section right after the form is defined:<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\">&#160;<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\">\nPublic Class Form1<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\"> Const userRoot As String = &quot;HKEY_LOCAL_MACHINE&quot;<br \/>\nConst subkey As String = &quot;Software\\KWeaver\\InfusionSetHelper&quot;<br \/>\nConst keyName As String = userRoot &amp; &quot;\\&quot; &amp; subkey  \n<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\">&#160;<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\">To set a key value I used:<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\"> Registry.SetValue(keyName, &quot;TDD&quot;, txtTDD.Text)<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\">&#160;<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\">To retrieve a key value I used:<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\">&#160;<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\"> Me.txtTotal.Text = Registry.GetValue(keyName, &quot;Total&quot;, Nothing)<br \/>\nMe.txtTDD.Text = Registry.GetValue(keyName, &quot;TDD&quot;, Nothing)<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\">&#160;<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\">To delete a key value I used:<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\">&#160;<\/p>\n<p style=\"margin-top:0; margin-bottom: 0;\"> Registry.CurrentUser.DeleteSubKey(keyName &amp; &quot;\/Total&quot;)   <\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I think I got most of what needed at this site:&#160; http:\/\/msdn.microsoft.com\/en-us\/library\/cy6azwf7(VS.80).aspx.&#160; Here&#8217;s the code: &#160; I defined the information for the key in section right after the form is defined: &#160; Public Class Form1 Const userRoot As String = &quot;HKEY_LOCAL_MACHINE&quot; Const subkey As String = &quot;Software\\KWeaver\\InfusionSetHelper&quot; Const keyName As String = userRoot &amp; &quot;\\&quot; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1103","post","type-post","status-publish","format-standard","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/posts\/1103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/comments?post=1103"}],"version-history":[{"count":0,"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/posts\/1103\/revisions"}],"wp:attachment":[{"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/media?parent=1103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/categories?post=1103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/tags?post=1103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}