c# - Groupbox Border color - AGAIN!

  • Thread starter Thread starter Ames111
  • Start date Start date
A

Ames111

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
 
Hi,


Ames111 said:
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top