วันอังคารที่ 3 กุมภาพันธ์ พ.ศ. 2552

Login Form VB.NET 02

This code demonstrates how to retrieve the username of the current windows user in VB.NET

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

Active Directory and VB.NET http://thaieasy2web.blogspot.com/2008/08/active-directory-and-vbnet.html

login login form with vb.net : how to verify ?http://www.dreamincode.net/forums/showtopic11117.htm


0 ความคิดเห็น: