Autor Beitrag
somebody
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167
Erhaltene Danke: 2



BeitragVerfasst: So 04.03.07 14:42 
Tach Leute, ich wollte mal ein Sudoku Programm machen, ist auch eigentlich kein Problem, aber es gibt ja verschiedene Schwierigkeiten und da wollte ich mal fragen:"wie verlinke ich einen Buttonklick damit das das zweite Formular geöffnet?"

Danke jetzt schon mal für Antworten.


Moderiert von user profile iconGausi: Topic aus Sonstiges (Delphi) verschoben am So 04.03.2007 um 14:44
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 04.03.07 14:43 
Da schreibst du einfach Form2.Show oder Form2.ShowModal ins OnClick-Event rein.

_________________
We are, we were and will not be.
somebody Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167
Erhaltene Danke: 2



BeitragVerfasst: So 04.03.07 14:47 
Dann sagt der :'Form2.Show ist kein gültiger Bezeichner'.
somebody Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167
Erhaltene Danke: 2



BeitragVerfasst: So 04.03.07 14:48 
Upps, ins falsche Ding gekrikkelt.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 04.03.07 14:56 
Hast du denn eine zweite Form erstellt? Über Datei -> Neu -> Formular in der Delphi-IDE?

_________________
We are, we were and will not be.
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: So 04.03.07 15:00 
oder hast du vergessen die zweite Unit in uses einzubinden

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
somebody Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167
Erhaltene Danke: 2



BeitragVerfasst: Mo 30.04.07 14:43 
Ich habe mich jetzt mal wieder mit dem Programm beschäftigt. Und als ich das Programm beenden wollte war mir das zu umstänslich die ganzen Formulars zu schließen und da wollte ich mal fragen wie man mit einem buttonklick ein formular schließt.

Danke jetzt schon mal für Antworten.
gasto
Hält's aus hier
Beiträge: 6

Windows XP SP2, Suse Linux 10
Delphi 7 Pro
BeitragVerfasst: Mo 30.04.07 14:58 
ausblenden Delphi-Quelltext
1:
  Form1.close;					


Wenn Du mal STRG+LEER drückst kriegst Du eine Befehlsübersicht ;-)
somebody Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167
Erhaltene Danke: 2



BeitragVerfasst: Mo 30.04.07 15:00 
Ah, danke