Hey guys,
Another question from me. In the beginning of my application I do the following check:
Whats happening is everyone is getting the MessageBox and the application is ending. I was with them when they logged into the domain, and we tried it several times, still getting the box.
Then I log them off, and logon, and it works fine for me. This happened on 2 different PCs. Any suggestions of what is going on. I'm sure I can just remove that portion of the application, but I just wanted to make sure they were logged into ADOM.
Where exactly does it get this information. It is the userdomain correct?
Another question from me. In the beginning of my application I do the following check:
Code:
'string to hold users logon
Dim strUserName As String = SystemInformation.UserName
If (Not SystemInformation.UserDomainName = "A70ADOM") Then
MessageBox.Show("Application will now close. Please connect to the network and try again.", "Cannot Find Network Connection", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1)
End
End If
Whats happening is everyone is getting the MessageBox and the application is ending. I was with them when they logged into the domain, and we tried it several times, still getting the box.
Then I log them off, and logon, and it works fine for me. This happened on 2 different PCs. Any suggestions of what is going on. I'm sure I can just remove that portion of the application, but I just wanted to make sure they were logged into ADOM.
Where exactly does it get this information. It is the userdomain correct?