Skip to content

FreeRdpControl ​

Namespace: RoyalApps.Community.FreeRdp.WinForms

This page is a usage overview. See the generated FreeRdpControl reference for member-level documentation and linked types.

A WinForms UserControl that owns a native FreeRDP child process.

Properties ​

PropertyTypePurpose
ConfigurationFreeRdpConfigurationTyped settings used on launch. Initialized by default.
LoggerILoggerOrdinary wrapper logging, separate from raw diagnostic output.
DiagnosticsOptionsProviderFunc<FreeRdpDiagnosticsOptions?>?Optional callback sampled before every child launch; null result leaves diagnostics unchanged.

Methods ​

MethodPurpose
Connect()Validate settings and start/embed the client; can throw on validation or startup failures.
Disconnect()Stop the associated process.
ZoomIn(), ZoomOut()Change scale by reconnecting.
ResetZoom()Restore zoom through the control's reconnect behavior.
SetZoomLevel(int scalingInPercent)Set scale and reconnect.
Dispose()Dispose the control and stop its native client.

Events and arguments ​

  • Connected: EventHandler.
  • Disconnected: EventHandler<DisconnectEventArgs>; arguments expose uint ExitCode, string ErrorMessage, and settable bool UserInitiated.
  • CertificateError: EventHandler<CertificateErrorEventArgs>; Continue() requests a certificate-bypassing retry.
  • VerifyCredentials: EventHandler<VerifyCredentialsEventArgs>; SetCredentials(string? username, string? domain, string? password) requests a retry with destination credentials.
  • DiagnosticOutput: EventHandler<FreeRdpDiagnosticEventArgs>; diagnostic records may arrive on background threads and during asynchronous cleanup.

Read Lifecycle and Events for ordering, retry, and ownership guidance.

FreeRdpControl source.

MIT Licensed