Cannot fully access My namespace facility in VS 2005

  • Thread starter Thread starter KM
  • Start date Start date
K

KM

I am having difficulty accessing the logged in user name through the
My.User.Name in the My namespace in VB 2005 - the value is empty.

I suspect it may have something to do with the fact that this project
was upgraded from VS 2003, as I have no problems retrieving the user
name in a project created solely in VS 2005.

Many thanks for your suggestions.
 
In VS2005 only real Windows Applications do initialise then My.User object.
Call
My.User.InitializeWithWindowsUser() to get this done in other apps (e.g.
class libraries or shared addins)

--
--
Victor Heijke
Microsoft Certified Professional
Software architect at Flores Automatisering
Amsterdam, the Netherlands
http://www.flores.nl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top