Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best Practice for drawing lines
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01099235
Message ID:
01099334
Vues:
23
Bonnie,

Just as a follow-up and an FYI, I find that SystemColors.ButtonShadow and SystemColors.ButtonHighlight seem to be the match I was looking for.

Thanks for you help,
Chad

>Bonnie,
>
>Thanks for the response. I'll check out the SystemColors, I didn't find it before because I was looking for Colors.System (or something along those lines). The reason I think I'd be better off using system colors over just plain gray and white is because of themes. I guess I'll play around with some various combinations of colors and themes and see what works best.
>
>Thanks,
>Chad
>
>>Chad,
>>
>>The color looks fine to me (the inset line looks just like the line around a GroupBox), but if you want to use SystemColors, you can do that too (SystemColors.ControlDark and SystemColors.Window seems to be the same as what you used with Gray & White).
>>
>>As far as being a best practice ... I don't know why it wouldn't be. Although the Graphics class has a lot of different methods for drawing all kinds of shapes, but if all you're drawing is lines, then this sure seems good enough to me. The other method for doing this might be DrawLines() which uses an array of Points.
>>
>>Now, I've not used any of this in "real life", just played with it a little just now, so take my replies with a grain of salt. <g> Perhaps someone with more experience with Graphics may chime in here, but I did want to at least mention the bit about the colors.
>>
>>~~Bonnie
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform