PopupSwitchUserDialog(String,String) 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. If a new user is logged on, the logon ent dialog automatically displays.
'Declaration
Public Overloads Function PopupSwitchUserDialog( _
ByVal SwitchUserTo As String, _
ByVal formName As String _
) As Boolean
public bool PopupSwitchUserDialog(
string SwitchUserTo,
string formName
)
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 dialog. Pass an empty string if the method is not being called from a dialog.
Return Value
Returns true if the user switch is successful.