Autor Beitrag
majolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: Mi 03.07.02 14:13 
Hab mal wieder ein kleines Komponenten Problem

Ich möchte von Form1 auf eine Form2 zugreifen(Kein Problem). In Form2 gibt es eine PageControl mit 4 Tabsheets. Standartmäßig ist TabSheet1 aktiv. Ich möchte jedoch mit einem KLICK Form2 und Tabsheet4 öffnen.
Ich kriege dauernd Fehlermeldungen.
Dank im vorraus
Majolo :?:
Marc
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 169

Win 2000, Win XP, SuSE Linux 8.2

BeitragVerfasst: Mi 03.07.02 14:16 
Hi majolo,

was gibt die Fehlermeldung denn aus?

Gruß Marc
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Mi 03.07.02 14:17 
Was für Fehlermeldungen?

Hast du schon
ausblenden Quelltext
1:
Form2.PageControl1.ActivePage := Form2.TabSheet4;					

probiert?

Gruß
Klabautermann
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 03.07.02 14:18 
Versuch es mal so:
ausblenden Quelltext
1:
Form2.PageControl1.ActivePage := Form2.TabSheet4;					

Gruß
majolo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: Mi 03.07.02 14:24 
Nach einem Neustart kommt die Fehlermeldung nicht mehr. Aber der Code funzt noch nicht.Ich gucke mal.Ich tüfftel noch ein wenig und berichte wenn es was neues gibt.
Gruss
Marcus
majolo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: Mi 03.07.02 14:28 
Hat geklappt. Danke für alle Antworten.
Delphiforum hilft doch immer.
majolo