Autor Beitrag
Krull
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20


D7 Personal
BeitragVerfasst: Fr 11.03.05 17:17 
Moin!

ich habe folgendes Problem:
Ich habe zwei Forms, eins ruft das andere bei verschiedenen Eingabe auf, allerdings dann mit unterschiedlichem Inhalt. Wenn man jetzt das zweite Form nicht schliesst und es dann wieder aufruft (visible:=true), kommt es nicht in den Vordergrund. Der User merkt also nichts von dem neuen Form.
Wie kann ich das zweite Form in den Vordergrund holen?

MfG und vielen Dank
Krull
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Fr 11.03.05 17:29 
vielleicht hilft das, gibt aber estimmt ne bessere methode über sendmessage aber kannst es mal testen

form2.Formstyle := fsStayOnTop;
form2.Formstyle := fsNormal;

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
Krull Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20


D7 Personal
BeitragVerfasst: Fr 11.03.05 17:48 
Es funzt!

Danke für die schnelle Hilfe :D
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Fr 11.03.05 17:54 
alternativ könnte auch SetForegroundWindow(form2.handle) gehen

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Fr 11.03.05 17:56 
  Form2.BringToFront{Top};O.ä.

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.