Autor Beitrag
c#ler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176
Erhaltene Danke: 1

Win7 64Bit
C#, VBA, VS2013 Ultimate
BeitragVerfasst: Mo 14.04.14 12:47 
Ich habe eine Client-Server Anwendung, bei der man sich nach dem Start anmelden muss. (Login-Dialog)
Wenn man jedoch während des Anmeldevorgangs ein anderes Fenster in den Vordergrund holt z.B. Word, wird der Login-Dialog nicht in der Startleiste angezeigt und das Fenster rückt in den Hintergrund.
Warum wird das Programm nicht in der Startleiste angezeigt? Wie bekomme ich es hin, dass es in der Startleiste angezeigt wird?
Danke für hilfreiche antworten.
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4708
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Mo 14.04.14 13:06 
In der Startleiste werden keine Programme angezeigt sondern Fenster. Du mußt deiner Form oder was du auch immer verwendest sagen das sie da auftauchen soll.
Bei Winforms als auch bei WPF gibts dazu die ShowInTaskbar Property an der Form bzw. Window.
c#ler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176
Erhaltene Danke: 1

Win7 64Bit
C#, VBA, VS2013 Ultimate
BeitragVerfasst: Mo 14.04.14 13:13 
Für den Login-Dialog habe ich die ShowIn Taskbar Property bereits auf true gesetzt. trotzdem wird mir das Fenster nicht angezeigt, wenn ich während des Programmstarts noch was anderes aufmache. :(
c#ler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176
Erhaltene Danke: 1

Win7 64Bit
C#, VBA, VS2013 Ultimate
BeitragVerfasst: Mo 14.04.14 16:14 
Das Fenster wird nachdem ich es einmal focusiert hatte (in eine Textbox oder auf die Form an sich klicke), wird mit das Icon dazu in der Programmleiste unten angezeigt, warum aber nicht beim initialisieren?
c#ler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176
Erhaltene Danke: 1

Win7 64Bit
C#, VBA, VS2013 Ultimate
BeitragVerfasst: Mo 14.04.14 16:39 
Ich habe nun doch die Lösung gefunden (auch wenn HACK).
Ich setze nach dem zeichnen des Forms, seperat ein Focus auf das Form.
Dadurch findet die Initialisierung immer statt und das Icon in der Programmleiste wird angezeigt.
Danke nochmal