Autor Beitrag
hedie
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249

WIN XP WIN 2000 WIN Longhorn
D7 Pers D2005 Architect Vollversion
BeitragVerfasst: Sa 05.03.05 11:21 
Hallo

Ich habe ein programm geschrieben dass bei seinem eigenen start ein zweites formular öffnet aber leider ist das zweite formular im vorder grund und es soll nur infos anzeigen

also wie kann ich machen dass beide fenster benützbar werden ?


Moderiert von user profile iconTino: Topic aus Sonstiges verschoben am Mo 07.03.2005 um 01:24

_________________
Grüsse hedie
hört auf traurig zusein hört lieber radio Basilisk
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Sa 05.03.05 11:39 
Benutz' doch mal die Foren-Suche :mrgreen:

Vermutlich zeigst du dein Fenster im Augenblick mit ShowModal an, oder? Probier's mal mit Show, dann bleibt auch das erste Fenster noch benutzbar. Wie man mit der VCL das erste Fenster nach dem Show wieder in den Vordergrund holt, weiß ich grad' nicht, im Zweifelsfall geht es mit SetForegroundWindow(Form1.Handle) ;-)

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Sa 05.03.05 11:43 
Gibt es vielleicht den Befehl Form2.BringToFront? Application.BringToFront gibt es ja, aber ob der Befehl auch für ein Formular existiert musste mal ausprobieren.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Sa 05.03.05 11:51 
Manchmal isses so einfach... Form1.SetFocus()

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Sa 05.03.05 11:58 
Tja, die einfachsten Dinge vergisst man eben am schnellsten :mrgreen: . Aber stimmt, wenn es Button1.SetFocus() gibt muss es ja auch eigentlich Form1.SetFocus() geben.