RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDispatchConnection.OnGetUsername Event

Occurs immediately before the remote login dialog.

Pascal
property OnGetUsername: TGetUsernameEvent;
C++
__property TGetUsernameEvent OnGetUsername;

Write an OnGetUsername event handler to initialize the user name in the remote login dialog that appears when the LoginPrompt property is true. Set the Username parameter to provide the initial value for the user name. If no OnGetUsername event handler is provided, the user name is initialized to an empty string. 

The remote login dialog occurs immediately before a new connection is established to the application server. If the user cancels from that dialog, the connection attempt is aborted.

Note: The OnGetUsername event does not occur unless the LoginPrompt property is true.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!