如何在 Labe 控件中显示当前用户名请代码
如何在Labe控件中显示当前用户名请代码~~有数据库
Public Function UserName() As String Dim buffer As String * 512, Length As Long If GetUserName(buffer, Len(buffer)) Then Length = InStr(buffer, vbNullChar) - 1 ComputerUserName = Left$(buffer, Length) End If End Function