PopupSwitchUserDialog(String,String,Boolean) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The PopupSwitchUserDialog() method opens the Switch User dialog. If called and no users are currently logged onto the session, the normal logon is processed. Otherwise, the Switch User dialog is loaded. In this overload of the method, if a new user is logged on, the Logon Ent dialog automatically displays only if the autoLogonEnts flag is set to true.
'Declaration
Public Overloads Function PopupSwitchUserDialog( _
ByVal SwitchUserTo As String, _
ByVal formName As String, _
ByVal autoLogonEnts As Boolean _
) As Boolean
public bool PopupSwitchUserDialog(
string SwitchUserTo,
string formName,
bool autoLogonEnts
)
Parameters
- SwitchUserTo
- Required. Holds the ID of the user to select in the list of users. Pass an empty string if no user should be selected.
- formName
- Required. Holds the name of the calling form. Pass an empty string if the method is not being called from a form.
- autoLogonEnts
- Required. Holds a flag that, if set to true, causes the Log On Ent dialog to open when logging on a new user. If this flag is set to false, the Log On Ent dialog will not open when logging on a new user.
Return Value
Returns true if the user switch was successful.