Andocken und Verankerung auf einem Windows-Form-Anwendung

Entwickle ich eine app für Windows Mobile 5.0 und oben, mit C# und .NET Compact Framework 2.0 SP2.

Ich habe eine WinForm mit zwei Platten innen (upperPanel und bottomPanel). Ich will, dass upperPanel immer füllen 2/3 der form, der Höhe, und bottomPanel füllt 1/3 der form - Höhe. Beide Platten füllen, die form komplett breit.

Ich habe diese verwendet:

upperPanel.Dock = Fill;
bottomPanel.Dock = Bottom;

Aber upperPanel füllt das Formular komplett aus.

Wie kann ich dies tun? Ich will, mehr o weniger, die gleiche gui auf verschiedenen Formfaktoren und auf Landschaft oder protrait - Modus.

Danke.

InformationsquelleAutor VansFannel | 2009-11-04

Schreibe einen Kommentar