{"id":11132,"date":"2016-01-30T15:35:54","date_gmt":"2016-01-30T14:35:54","guid":{"rendered":"http:\/\/www.pesadillo.com\/pesadillo\/?p=11132"},"modified":"2020-01-30T15:41:21","modified_gmt":"2020-01-30T14:41:21","slug":"visual-basic-express-2010leer-clave-de-registro-de-windows-a-listbox","status":"publish","type":"post","link":"https:\/\/www.pesadillo.com\/pesadillo\/?p=11132","title":{"rendered":"Visual basic express 2010:Leer clave de registro de windows a ListBox"},"content":{"rendered":"<p><a href=\"http:\/\/www.pesadillo.com\/pesadillo\/wp-content\/uploads\/2020\/01\/Captura2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11133\" alt=\"Captura\" src=\"http:\/\/www.pesadillo.com\/pesadillo\/wp-content\/uploads\/2020\/01\/Captura2.png\" width=\"698\" height=\"395\" srcset=\"https:\/\/www.pesadillo.com\/pesadillo\/wp-content\/uploads\/2020\/01\/Captura2.png 698w, https:\/\/www.pesadillo.com\/pesadillo\/wp-content\/uploads\/2020\/01\/Captura2-300x169.png 300w\" sizes=\"auto, (max-width: 698px) 100vw, 698px\" \/><\/a><\/p>\n<pre>Para local machine\r\n[php]\r\nPublic Class Form1\r\n    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click\r\n        Dim FontKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(&quot;SOFTWARE&quot;)\r\n        For Each SubKey As String In FontKey.GetSubKeyNames()\r\n            ListBox1.Items.Add(SubKey)\r\n        Next\r\n        FontKey.Close()\r\n    End Sub\r\nEnd Class\r\n[\/php]\r\n\r\n\r\n\r\n\r\nPara current user\r\n\r\n[php]&lt;\/pre&gt;\r\nPublic Class Form1\r\n Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click\r\n Dim FontKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(&quot;software\\&quot;)\r\n For Each SubKey As String In FontKey.GetSubKeyNames()\r\n ListBox1.Items.Add(SubKey)\r\n Next\r\n FontKey.Close()\r\n End Sub\r\nEnd Class\r\n&lt;pre&gt;\r\n[\/php]\r\n\r\n\r\n\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Para local machine [php] Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim FontKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(&quot;SOFTWARE&quot;) For Each SubKey As String In FontKey.GetSubKeyNames() ListBox1.Items.Add(SubKey) Next FontKey.Close() End Sub End Class [\/php] Para current user [php]&lt;\/pre&gt; Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11132","post","type-post","status-publish","format-standard","hentry","category-sin-categoria"],"_links":{"self":[{"href":"https:\/\/www.pesadillo.com\/pesadillo\/index.php?rest_route=\/wp\/v2\/posts\/11132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pesadillo.com\/pesadillo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pesadillo.com\/pesadillo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pesadillo.com\/pesadillo\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pesadillo.com\/pesadillo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11132"}],"version-history":[{"count":3,"href":"https:\/\/www.pesadillo.com\/pesadillo\/index.php?rest_route=\/wp\/v2\/posts\/11132\/revisions"}],"predecessor-version":[{"id":11135,"href":"https:\/\/www.pesadillo.com\/pesadillo\/index.php?rest_route=\/wp\/v2\/posts\/11132\/revisions\/11135"}],"wp:attachment":[{"href":"https:\/\/www.pesadillo.com\/pesadillo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pesadillo.com\/pesadillo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pesadillo.com\/pesadillo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}