Autor Beitrag
Peter1000
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 60



BeitragVerfasst: Do 15.01.15 14:22 
Hallo,

wie kann man den Close-Button im Fenster rechts oben entfernen? Also dass er erst gar nicht erscheint.
Den Minimize-Button kann man im Eigenschaftsfenster entfernen, nur finde ich für den Close-Button dazu nichts.

Wie kann man das bewerkstelligen?

Peter
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4701
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Do 15.01.15 14:30 
ausblenden C#-Quelltext
1:
ControlBox = false					
Peter1000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 60



BeitragVerfasst: Do 15.01.15 14:44 
Erst mal Danke.
Und wo muss das hin?

user profile iconRalf Jansen hat folgendes geschrieben Zum zitierten Posting springen:
ausblenden C#-Quelltext
1:
ControlBox = false					
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4701
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Do 15.01.15 15:18 
Da wo du auch die MinimizeBox bzw. MaximizeBox Properties gefunden hast solltest du auch die ControlBox Property finden und entsprechend auf false setzten.
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4764
Erhaltene Danke: 1052

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Do 15.01.15 16:07 
Ralf: in WPF ist dies leider nicht so einfach möglich, da es diese Eigenschaft dort nicht gibt (nur in WinForms).

Peter: dies ist nur per P/Invoke möglich, s. [WPF] Hide the “Window Buttons” (minimize, restore and close) and the icon of a window

Für diesen Beitrag haben gedankt: Peter1000
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4701
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Do 15.01.15 16:49 
Ich hätte schwören können es geht um Winforms :(
Peter1000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 60



BeitragVerfasst: Do 15.01.15 18:02 
ne ist ja das WPF/Silverlight Forum :wink: