471,330 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

c# - Groupbox Border color - AGAIN!

I have found about a billions threads on this but not one answer.

The groupbox control, how can you set its border colour?

I see many people responding with "Capture the onpaint event"

but honestly i believe im not the only person who gets no benefit from
such a suggestion.

A sample on capturing this event, setting the border color to something
else, and some explanation as to where such code would go would be real
help.

I can't believe that such a control doesnt have a bordercolor property.

Thanks

Andrew

Dec 7 '05 #1
1 13654
Hi,
"Ames111" <an*********@4projects.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I have found about a billions threads on this but not one answer.

The groupbox control, how can you set its border colour?
There is no public property for this. hence you cannot change it.
I see many people responding with "Capture the onpaint event"

but honestly i believe im not the only person who gets no benefit from
such a suggestion.
It's a good suggestion , you handle that event and can erase (paint) the
border the way you like, what is wrong with that?
A sample on capturing this event, setting the border color to something
else, and some explanation as to where such code would go would be real
help.
See MSDN for Control.Paint event.
I can't believe that such a control doesnt have a bordercolor property.


I have never used this control, when I need to group controls I use Panel

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Dec 7 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Vincent Finn | last post: by
1 post views Thread by MikeY | last post: by
2 posts views Thread by Dan Neely | last post: by
4 posts views Thread by Peteroid | last post: by
5 posts views Thread by Nad | last post: by
5 posts views Thread by Jason Huang | last post: by
8 posts views Thread by Steve | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.