Autor Beitrag
Philipp_Reitter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 12.06.06 08:22 
hi

ich hab ein Login gemacht nur wenn ich das prog starte sagt es login.show; main.hide; nur er zeigt zwar die Login form aner die main hidet er nicht...!?
wenn ich Login zuerst Createn lasse dann sagt mir die Main eine zugriffsverletzung... ganz komisch.. aber ich möchte einfach das login am anfang sehen udn die main nciht... scheint einfach aber hau nciht hin...!!!

kann mir jemand helfen???

danke im vorraus...
Philipp Reitter
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mo 12.06.06 08:54 
Hallo Philipp,
poste mal ein bischen Code.

_________________
Markus Kinzler.
martin_gnoe
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 12.06.06 10:35 
Hi Philipp

Ich kapier zwar dein Problem aber ich habs selbst mal probiert und bei mir klappts optimal.
Startest du die Login Form über das Hauptformualar oder das Hauptformular über die Login form???

Ciao
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Di 13.06.06 13:55 
ich starte das login über da hauptformular denn wenn cih es umgekehrt mache kommt eine fehlermeldung "Zugriffsverletzung..."
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Di 13.06.06 14:12 
Hallo!

Die AV kommt weil du das bestimmt ins FormCreate schreibst und dadurch ist die andere Form noch nicht created. Warum machst du nicht einfach die LoginForm als Hauptform? Ich glaube damit wäre dein Problem eleganter gelöst..


greetz

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Di 13.06.06 14:12 
oder wie hältst du von einem splashscreen? :roll:
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Di 13.06.06 19:46 
wie kann cih das als hauptform machen??? wenn ich es als erstes createn lasse dann kommt ja der fehler???

aber das mit dem splashscreen ist gut!! das wollte chc eigentlich machen aber ich fand den beitrag darüber nicht...
COMMANDER86
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 167

Win XP, Win Vista
D3 Prof., D7 Pers., Lazarus
BeitragVerfasst: So 10.09.06 13:44 
Du kannst unter den Optionen, wo Du auch den Dateinamen ändern oder eine Hilfedatei anfügen kannst, auch das Startformular auswählen. Wenn Du da Dein Login-Form angibst, wird bei Start nur dieses Formular angezeigt. Das Haupt-Form bleibt im Hintergrund. Via Show-Hide kannst Du dann wieder anzeigen lassen, was Du möchtest.

_________________
Streichen Sie bitte sämtlichen Sarkasmus aus vorhergehender Nachricht. Dann wissen Sie, was ich sagen möchte. Meine Lösungen sind die vermutlich Umständlichsten, aber sie funktionieren (bei mir). ;)