Cannot fully access My namespace facility in VS 2005

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • KM

    Cannot fully access My namespace facility in VS 2005

    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.

  • VictorH

    #2
    RE: Cannot fully access My namespace facility in VS 2005

    In VS2005 only real Windows Applications do initialise then My.User object.
    Call
    My.User.Initial izeWithWindowsU ser() 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
    Ontdek bij Flores een toekomstgerichte Nederlandse keuken waar duurzaamheid en innovatie centraal staan. Geniet van smaakvolle gerechten bereid met lokale, seizoensgebonden ingrediënten uit regeneratieve tuinen en voedselbossen rondom Nijmegen. Proef onze unieke plantaardige charcuterie en bewust gekozen vlees van wild en gepensioneerde melkkoeien. Bij Flores combineren we traditionele fermentatietechnieken met moderne smaken, zonder concessies aan welzijn en natuur.



    "KM" wrote:
    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.
    >
    >

    Comment

    Working...