Autor Beitrag
blutengel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 59

Win XP, WIN 7
VS#2008 Prof
BeitragVerfasst: Sa 27.02.10 01:47 
Hallo!

Ich habe da mal eine Frage zu der Methode MessageBox.Show. Wie kann ich die Messagebox formatieren, um längeren Text auf mehrere Zeilen aufzuteilen. Also einen Zeilenumbruch?

MFG

blutengel
JüTho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2021
Erhaltene Danke: 6

Win XP Prof
C# 2.0 (#D für NET 2.0, dazu Firebird); früher Delphi 5 und Delphi 2005 Pro
BeitragVerfasst: Sa 27.02.10 13:10 
Das geht mit der normalen MessageBox nur umständlich durch Versuche. In den String muss an passenden Stellen Environment.NewLine eingefügt werden.

Ansonsten kannst du dir eine eigene MessageBox basteln als Formular mit einer MultiLine-TextBox oder schauen, was es bei codeproject schon gibt.

Gruß Jürgen