Autor Beitrag
zero_cool1986
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 95

MS DOS ;)
D6
BeitragVerfasst: Mo 24.10.05 22:43 
hi, ich hab mal ne Frage ich habe 2 Formen Form1 und Form2 aber ich möchte das beim starten zuerst Form2 erscheint wie mach ich das? bin dankbar für hilfe mfg Daniel
Amateur
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 777

(Win98, WinMe) WinXP Prof
D3 Prof, D6 Pers, D2k5 Pers., Turbo C++ Explorer
BeitragVerfasst: Mo 24.10.05 22:47 
naja im onactivate des form1 dieses verstecken mit form1.hide und gleichzeitig form2.show... so würde ich das machen weiss aber nicht ob das funktioniert...

_________________
"Kein dummes Gerede. Kein Rumrätseln. Denkt an nichts anderes mehr, nur noch an das, was vor euch liegt. Das ist die wahre Herausforderung. Ihr müßt euch vor euch selbst schützen, Leute." (Rennes in "Cube")
Beiträge: >700
zero_cool1986 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 95

MS DOS ;)
D6
BeitragVerfasst: Mo 24.10.05 22:51 
neee ok du hab schon trotzdem danke
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mo 24.10.05 23:12 
Probiers mal so !

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
var
  Form1: TForm1;

implementation

uses Unit2;

{$R *.dfm}

begin
  Application.Initialize;
  Form2:=TForm2.create(application);
  Application.CreateForm(TForm2, Form2);
  Application.CreateForm(TForm1, Form1);
  Application.Run;
  Form2.free;
  Application.Run;
end.

{<--------------------------------------------------------------------->}

var
  Form2: TForm2;

implementation

uses Unit1;

{$R *.dfm}

procedure TForm2.FormClose(Sender: TObject; var Action: TCloseAction);
begin
 Form1.ShowModal;
end;

end.
VT
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25



BeitragVerfasst: Mo 24.10.05 23:16 
also man kann doch in den projektoptionen das hauptformular einstellen. setzt du also einfach auf 2.