Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie questions on WinForm design
Message
 
À
16/03/2007 14:14:44
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01204604
Message ID:
01204760
Vues:
23
Correct, although that is also a panel and thus changes form hierarchy and such, which may not be desired...

Markus


>Markus there is no shape but there is a GroupBox control that is exactly for that, it even have a caption on top.
>
>>There is no shape in WinForms (although there is in WPF). So in WinForms, you may have to create it yourself. Something like this would do:
>>
>>
public class Shape : Control
>>{
>>    public override void OnPaint(PaintEventArgs e)
>>    {
>>        e.Graphics.DrawRectangle(this.ClientSize);
>>    }
>>}
>>
>>The code may not be exactly right as I am just typing it in by heart, but you get the idea...
>>
>>Markus




Markus Egger
President, EPS Software Corp
Author, Advanced Object Oriented Programming with VFP6
Publisher, CoDe Magazine
Microsoft MVP since 1995
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform