How can I get the computer name and the user name of the loged in user on a workstation from VB?
Thanks For Any Help!!!
Kris
Software Engineer
Phoenix,AZ
Printable View
How can I get the computer name and the user name of the loged in user on a workstation from VB?
Thanks For Any Help!!!
Kris
Software Engineer
Phoenix,AZ
Hello,
You can get the user name by using the winsock controls Local Host Name property.
Thanks
Harini
Well That Actually Returns The PC Name. But I am Not Using Winsock In This App So I Would Hate
To Use It Just For That. I Know It Can Be Done With API's But I Don't Know How.
Kris
Software Engineer
Phoenix,AZ
Hello,
For getting the user name use GetUserName API.
Thanks
Harini
Hello,
Also you can use GetComputerName API for getting the computer's name
Thanks
Harini
Thanks!!!
Kris
Software Engineer
Phoenix,AZ
Hello,
How can I pass an information from one .exe file with another .exe file.
Ex: In one .exe file if I select a picture name(combo box), it should open another .exe file and display that particular picture.(pic box).