Autor Beitrag
patmann2001
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 201

Windows 7 Prof.
Delphi XE2
BeitragVerfasst: Mi 11.09.02 19:15 
Hallo
Ich habe eine form1 Typ TForm.
ausblenden Quelltext
1:
 form1.visible:=false;					

Wenn jetzt jedoch Code im Programm ausgeführt wird, erscheint der Balken der Form auf dem Desktop. Dann habe ich der Form gesagt, sie soll minimiert gestartet werden, dann jedoch läuft das Prog erst ab, wenn ich sie wieder maximiere. Wie kann ich den mein Programm so laufen lassen das meine Form unsichtbar bleibt.

cu Patmann
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mi 11.09.02 19:27 
probiers mal mit:

ausblenden Quelltext
1:
Form1.Hide;					

_________________
Viele Grüße
Jakob
patmann2001 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 201

Windows 7 Prof.
Delphi XE2
BeitragVerfasst: Mi 11.09.02 20:25 
Ja
Hab ich schon
geht leider auch nicht.
cu Patmann
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mi 11.09.02 20:31 
schreib mal in die *.dpr folgenden Code:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.ShowMainForm := False;
  Application.Run;
end.

_________________
Viele Grüße
Jakob
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Do 12.09.02 08:06 
Hi
noch ne Variante:
ausblenden Quelltext
1:
2:
3:
4:
procedure TForm1.FormActivate(Sender: TObject);
begin
  ShowWindow(self.Handle, SW_HIDE);
end;


Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
patmann2001 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 201

Windows 7 Prof.
Delphi XE2
BeitragVerfasst: Do 12.09.02 10:47 
HI
Die Lösung von LCS klappt leider auch nicht,das Formular wird trozdem ganz kurz sichtbar.

Von DeCodeGuru die Lösung ist super jedoch wird dann der Code in Form1 nicht ausgeführt. Das Programm beendet sich nicht u.s.w.

cu Patmann
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Do 12.09.02 12:04 
Hi
das Problem mit dem ganz kurz sichtbar kannst du damit lösen, dass du das Formular beim Erstellen ganz an den rechten Bildschirmrand verschiebst. Dadurch ist es praktisch überhaupt nicht mehr zu sehen.
ausblenden Quelltext
1:
2:
3:
4:
TForm1.FormCreate....
begin
  Left := Screen.DesktopWidth;
end;


Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...