Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I am in the midst of refactoring an old vb6 app to VB.net in VS2022. (Win11)
With VB6 and PM2012 I had access to all registry keys under /localmachine/Delcam/, and also to /localmachine/Delcam/Powermill
using :
Dim PowerMILL As RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Autodesk")
Dim List_PM As String() = PowerMILL.GetSubKeyNames
Now, with vb.net most of the keys are invisible to PowerMILL As RegistryKey and
Dim PowerMILL As RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Autodesk\Powermill")
Dim List_PM As String() = PowerMILL.GetSubKeyNames
creates an exception at the second line because SOFTWARE\Autodesk\Powermill is not accessible.
What do I do wrong here ?
Solved! Go to Solution.