Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie questions on WinForm design
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01204604
Message ID:
01204721
Vues:
18
>Instead of opening a new thread, I will just add my questions to this one. I know I will probably be asking a lot of questions so it is better not to overburden the UT.
>
>In the Win.NET world, what do you use as Shape in VFP? I use Shape in VFP just to surround a few controls with a nice rectangular box. I want to do the same in Win.NET.
>
>Thank you.


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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform