unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls,
activexcontainer, MSTSCLib_1_0_TLB,Registry;
type
{ TForm1 }
TForm1 = class(TForm)
ActiveXContainer1: TActiveXContainer;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
var
RDP: TEvsMsRdpClient2;
begin
RDP:=TEvsMsRdpClient2.Create(self);
RDP.ComServer.UserName:='';
RDP.ComServer.Server:='127.0.0.2';
RDP.ComServer.AdvancedSettings3.RDPPort:=3389;
RDP.ComServer.Connect;
ActivexContainer1.ComServer:= RDP.ComServer;
ActivexContainer1.Active:=true;
end;
end.