Autor Beitrag
shil
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 143

Windows Xp
C#
BeitragVerfasst: Fr 23.02.07 11:12 
Hallo,
Ich hätte da mal eine Frage und zwar:
Ich habe ein Formular erstellt und mit Buttons Listen usw. gefühlt.
Jedoch gefällt mir der Sytle von dem Fenster nicht. Wie kann ich jetzt sagen, das das Fenster z.b. keinen MaximizeButton mehr haben soll. Oder das der Rahmen in dem der Name des Programms steht nichtmehr den von meinem System eingestellten Sytle hat.
Wäre super wenn mir jmd sagen kann wie das geht, oder ein gutes Tutorial dazu hat.

MFG Shil.

p.s: ich arbeite mit visual studio 2005, sofern diese Information benötigt wird.
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Fr 23.02.07 11:32 
Um den Maximize Button zu deaktivieren gibt es eine Eigenschaft: "MaximizeBox", die musst du false setzen, das gleiche mit "MinimizeBox" wenn du auch das minimieren deaktivieren willst.
Um alles zu deaktivieren musst du "ControlBox" auf false setzen.
Um den Rand und die Schrift(oben, "Form1") zu ändern musst du FormBorderStyle auf None setzen :wink:

Leuchtturm

PS:um nur den "CloseButton"(X) zu deaktivieren habe ich keine Eigenschaft gefunden

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
shil Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 143

Windows Xp
C#
BeitragVerfasst: Fr 23.02.07 11:39 
danke dir, habe ich auch schon gefunden. Nur mein Problem ist immernoch der Style des Fensters.
Ich will den Standart Sytle von Windows ignorieren und meinen eigenen "einbauen".
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Fr 23.02.07 11:48 
Mit Bildern??? und in der Methode deiner Wahl des Bildes eine Aktion ausführen(z.B verschieben, schließen, minimieren) :wink:

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
shil Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 143

Windows Xp
C#
BeitragVerfasst: Fr 23.02.07 11:55 
keine Bilder. Ich rede nicht von den Buttons, sonderen von den Leisten.
Das Ding was im Standart Windows so dick und blau ist und der Name des Ordners oder Programms drin steht ;(
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Fr 23.02.07 11:56 
Wenn du FormBorderStyle auf "NONE" setzt kannst du die Balken durch deine eigenen Bilder ersetzen. Diesen Bildern kannst du dann eine Methode zuweisen.
Orell

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
shil Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 143

Windows Xp
C#
BeitragVerfasst: Fr 23.02.07 12:10 
geht das echt nur auf so ne beknackte art und weise?
wenn ja... *cry*
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Fr 23.02.07 12:11 
Es gibt bestimmt auch andere Wege aber mir fällt bloß der ein :nixweiss:

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
shil Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 143

Windows Xp
C#
BeitragVerfasst: Fr 23.02.07 12:17 
naja dake dir trotzdem leuti ;)