how to get comp name or user name ???
anyone know this ??

thank you :)

CompName = System.Environment.MachineName.ToString
UseName = System.Environment.UserName.ToString
commented: Usefull. thx +1
commented: easy code for beginer +1
commented: wow so easy..;) +1

use this code to get upper result

CompName = CompName.ToUpper
UseName = UseName.ToUpper
commented: thx to direct me +1

oh... so simple...i don't know it.
thanks jx_man. :)

you're welcome

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.