unit WinForm5;
interface
uses
System.Drawing, System.Collections, System.ComponentModel,
System.Windows.Forms, System.Data,WinForm4;
type
TWinForm5 =
class(System.Windows.Forms.Form)
{$REGION 'Vom Designer verwalteter Code'}
strict private
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
Components: System.ComponentModel.Container;
Button1: System.Windows.Forms.Button;
Label1: System.Windows.Forms.
Label;
/// <summary>
/// Erforderliche Methode zur Unterstützung des Designers -
/// ändern Sie die Methode nicht mit dem Quelltext-Editor
/// </summary>
procedure InitializeComponent;
procedure Button1_Click(sender: System.
Object; e: System.EventArgs);
{$ENDREGION}
strict protected
/// <summary>
/// Ressourcen nach der Verwendung bereinigen
/// </summary>
procedure Dispose(Disposing: Boolean);
override;
private
function get_MainForm : TWinForm4;
property Mainform : TWinForm4
read get_MainForm;
public
constructor Create;
end;
[assembly: RuntimeRequiredAttribute(TypeOf(TWinForm5))]
implementation
{$AUTOBOX ON}
{$REGION 'Vom Windows Form-Designer erzeugter Code'}
/// <summary>
/// Erforderliche Methode zur Unterstützung des Designers --
/// ändern Sie die Methode nicht mit dem Quelltext-Editor
/// </summary>
procedure TWinForm5.InitializeComponent;
begin
Self.Button1 := System.Windows.Forms.Button.Create;
Self.Label1 := System.Windows.Forms.
Label.Create;
Self.SuspendLayout;
//
// Button1
//
Self.Button1.Location := System.Drawing.Point.Create(88, 48);
Self.Button1.
Name := '
Button1';
Self.Button1.TabIndex := 0;
Self.Button1.Text := '
Button1';
Include(Self.Button1.Click, Self.Button1_Click);
//
// Label1
//
Self.Label1.Location := System.Drawing.Point.Create(56, 136);
Self.Label1.
Name := '
Label1';
Self.Label1.TabIndex := 1;
Self.Label1.Text := '
Label1';
//
// TWinForm5
//
Self.AutoScaleBaseSize := System.Drawing.Size.Create(5, 13);
Self.ClientSize := System.Drawing.Size.Create(292, 272);
Self.Controls.Add(Self.Label1);
Self.Controls.Add(Self.Button1);
Self.
Name := '
TWinForm5';
Self.Text := '
WinForm5';
Self.ResumeLayout(False);
end;
{$ENDREGION}
function TWinForm5.get_MainForm : TWinForm4;
begin
result := Owner
as TWinForm4;
end;
procedure TWinForm5.Dispose(Disposing: Boolean);
begin
if Disposing
then
begin
if Components <>
nil then
Components.Dispose();
end;
inherited Dispose(Disposing);
end;
constructor TWinForm5.Create;
begin
inherited Create;
//
// Erforderlich für die Unterstützung des Windows Forms-Designers
//
InitializeComponent;
//
// TODO: Fügen Sie nach dem Aufruf von InitializeComponent Konstruktorcode hinzu.
//
end;
procedure TWinForm5.Button1_Click(sender: System.
Object; e: System.EventArgs);
begin
mainform.Labeltext := '
DD';
end;
end.