AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Umschalten zwischen Formularen

Ein Thema von Master_BB · begonnen am 10. Jun 2003 · letzter Beitrag vom 10. Jun 2003
 
Master_BB

Registriert seit: 17. Mai 2003
285 Beiträge
 
Delphi 7 Professional
 
#20
  Alt 10. Jun 2003, 18:57
Das wechseln von Unit1 zu Unit2 läuft von Unit2 zu 1 kommt dann der fehler

Unit1 wo was drin is
Delphi-Quellcode:
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
 if Form7.pMain.ControlCount = 1 then
    Form7.pMain.Controls[0].Parent := TWinControl (Form7.pMain.Controls[0].Owner);
  Form2.pMain.Parent := pMain;
  Form7.Caption := Form1.Caption;
end;
Unit2 wo was drin is
Delphi-Quellcode:
procedure TForm2.BitBtn4Click(Sender: TObject);
begin
  if Form7.pMain.ControlCount = 1 then
    Form7.pMain.Controls[0].Parent := TWinControl (Form7.pMain.Controls[0].Owner);
  Form1.pMain.Parent := pMain;
  Form7.Caption := Form1.Caption;
  closefile(pf);
end;
Leer Unit7
Delphi-Quellcode:
procedure TForm7.FormShow(Sender: TObject);
begin
  if Form7.pMain.ControlCount = 1 then
    Form7.pMain.Controls[0].Parent := TWinControl (Form7.pMain.Controls[0].Owner);
  Form1.pMain.Parent := pMain;
  Form7.Caption := Form1.Caption;
end;
Fehler wird angezeigt hier
Delphi-Quellcode:
begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.CreateForm(TForm2, Form2);
  Application.CreateForm(TForm4, Form4);
  Application.CreateForm(TForm6, Form6);
  Application.CreateForm(TForm5, Form5);
  Application.CreateForm(TForm7, Form7);
  Application.Run;
end. //--HIER DER FEHLER STackÜberlauf
[edit=Daniel B]Center-Tags in Delphi-Tags umgewandelt. Wer macht denn sowas? MfG Daniel B.[/edit]
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:12 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz