If you are not use RBS, then are you talking about Windows Logged User? if that is the case, I have not done that yet, but there are plenty of info in google on how to read the Windows current user.
No, I am not talking about Windows Logged User. My application has its own log in form and it has a table of application users in SQL server.
AddHandler MicroFour.StrataFrame.Security.SecurityBasics.CurrentUserChanged, AddressOf UpdateCurrentUserInfo ''' <summary>''' Update the Current User info on the main form.''' </summary>''' <remarks></remarks>Private Sub UpdateCurrentUserInfo() '-- Show the current logged user info. Dim currentUserName As String = MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO.RetrieveFullName(SecurityBasics.CurrentUser.UserPK, False) If SecurityBasics.CurrentUser.UserName.Equals("Administrator", StringComparison.CurrentCultureIgnoreCase) Then currentUserName = SecurityBasics.CurrentUser.UserName End If Me.tlmUserInfo.ItemCollection("CurrentUser").Title = currentUserName Me.tlmUserInfo.ItemCollection("LoggedOnValue").Title = SecurityBasics.CurrentUser.LoggedOnAt.ToStringEnd Sub
AddHandler
''' <summary>
currentUserName = SecurityBasics.CurrentUser.UserName
End If
I take it that this code requires that I have the Role Based Security module installed. Since I do not, this could be a problem
Thanks