This code demonstrates how to retrieve the username of the current windows user in VB.NET
Active Directory and VB.NET http://thaieasy2web.blogspot.com/2008/08/active-directory-and-vbnet.html
Declare Function GetUserName Lib "advapi32.dll" Alias _
"GetUserNameA" (ByVal lpBuffer As String, _
ByRef nSize As Integer) As Integer
Public Function GetUserName() As String
Dim iReturn As Integer
Dim userName As String
userName = New String(CChar(" "), 50)
iReturn = GetUserName(userName, 50)
GetUserName = userName.Substring(0, userName.IndexOf(Chr(0)))
End Function
credit : http://www.developerfusion.com/code/4409/get-current-username-in-vbnet/
more : http://www.programmersheaven.com/mb/VBNET/372574/372574/how-to-do-username-and-password-problem-in-vbnet/?S=B20000
http://www.vb-helper.com/howto_net_password_db.html
http://www.thaiadmin.org/board/index.php?topic=75951.0;imode
อันนี่น่าสนใจดี... http://msforums.ph/forums/t/41200.aspx
วันอังคารที่ 3 กุมภาพันธ์ พ.ศ. 2552
Login Form VB.NET 02
login login form with vb.net : how to verify ?http://www.dreamincode.net/forums/showtopic11117.htm
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
0 ความคิดเห็น:
แสดงความคิดเห็น