diff --git a/src/RoyalApps.Community.Rdp.WinForms/Controls/RdpControl.cs b/src/RoyalApps.Community.Rdp.WinForms/Controls/RdpControl.cs index da7b1fa..3e98239 100644 --- a/src/RoyalApps.Community.Rdp.WinForms/Controls/RdpControl.cs +++ b/src/RoyalApps.Community.Rdp.WinForms/Controls/RdpControl.cs @@ -104,6 +104,12 @@ public class RdpControl : UserControl /// public event EventHandler? RemoteDesktopSizeChanged; + /// + /// Raised after the was created and configured, but before the connection is established. + /// This event allows users to customize the RdpClient in extra ways not covered by the . + /// + public event EventHandler? RdpClientConfigured; + /// /// Creates a new instance of the RdpControl. /// @@ -190,6 +196,8 @@ public void Connect() _canScale = false; ApplyInitialScaling(); + + this.RdpClientConfigured?.Invoke(this, EventArgs.Empty); RdpClient!.Connect(); }