'--- Letakkan di module
Public Declare Function GetUserNameA Lib "advapi32.dll" _
(ByVal lpBuffer As String, nSize As Long) As Long
'--- Akhir Letakkan di module
Public Function GetUserName() As String
Dim UserName As String * 255
Call GetUserNameA(UserName, 255)
GetUserName = Left$(UserName, InStr(UserName, Chr$(0)) - 1)
End Function
Private Sub Form_Load()
MsgBox GetUserName
End Sub
Perusahaan jasa pembuatan software, pembuatan aplikasi Android, Jasa design website dengan harga bersaing dan After Sales Service terbaik.
Mon – Fri : 10AM – 5PM
Sat - Sun : Closed
Jelambar Selatan XVII-H Blok E No. 2B, Jakarta Barat
+628131485-5566 / +62816-1453-999
© AbelPutra.com 2024, Designed by HTML Codex