OK, this seems simple...but I can't seem to figure it out!
I'm using the AspNetSqlMembershipProvider in my windows form...which works great to login in:
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
If Membership.ValidateUser(UsernameTextBox.Text, PasswordTextBox.Text) Then
MessageBox.Show("Your login attempt was not successful. Please try again.", "Login", MessageBoxButtons.OK, MessageBoxIcon.Warning)
Once I open the Lookup form based on the fact that their login passed the validation...how do I get the current user name?
For example in ASP.net I can use User.Identity.Name, but what is it in Windows Forms?