'GetUserName' is not a member of 'Win.Registry'

  • Thread starter Thread starter mp
  • Start date Start date
M

mp

Another vb6 to .Net conversion question

Error 5 'GetUserName' is not a member of 'Win.Registry'.

thanks for any tips on tracking down all these and similar errors

mark
 
mp said:
Another vb6 to .Net conversion question

Error 5 'GetUserName' is not a member of 'Win.Registry'.

thanks for any tips on tracking down all these and similar errors


Same quetsion as before.


Armin
 
Hi,

And what you are trying to do is ? At first sight the registry and a
function that would return a user name are unrelated.

Are you looking for System.Environment.UserName to get the current user or
Microsoft.Win32.Registry.Users to get access to the registry user specific
values ?
 
There are approximately 40,000 types in all of the .NET Framework. What you
would consider common, others wouldn't.

The "My" namespace is a created construct that is contained in the
Microsoft.VisualBasic assembly. It's available as a native part of every VB
..NET project and you will find it in the Object Browser, listed within the
project you are working on, as a namespace of your project.

There is no easy path to learning .NET. I suggest that rather than try to
piece together what you need, you back up and start at the beginning by
picking up a book on VB .NET and the .NET Framework.

-Scott
 
Thanks for responding. This was just what the wizard converted it to, not
me.
Yes it was environment.UserName that worked per other post
Thanks
Mark
 
Back
Top