|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Cannot fully access My namespace facility in VS 2005I 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) -- Show quoteHide quote-- Victor Heijke Microsoft Certified Professional Software architect at Flores Automatisering Amsterdam, the Netherlands http://www.flores.nl "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. > >
Get Element Value
Maximum number of controls in a form retrieve rows from datagridview into a separate datatable? Moving Splitter Throws Exception iDisposable and database connection to SQL How To Create New Form From Form Or Tabs On A Form how to add a reference in asp.net/vb.net? Obscure Text in Textbox MDI How to use PDF file for online help from VB.Net windows app |
|||||||||||||||||||||||