473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 14096
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marina | last post by:
Hi, I'm creating a user control similar to the GroupBox control and I need to set Title and Border colors same as a ones of the original .NET GroupBox. For example with blue or silver color...
4
by: Vincent Finn | last post by:
Can anyone tell me what the difference is? Where I might need one over the other? I know in VB there was a panel and no groupBox in MFC there was a groupBox and no panel But in C# they are...
1
by: MikeY | last post by:
I'm trying to find a way for changing the thickness of the groupbox borders. I've searched on this site but can't seem to find anything of this subject. Does anyone have a suggestion. Thanks in...
2
by: Dan Neely | last post by:
My dialog has groupboxes with slow to redraw controls, to improve the appearance I want to doublebuffer it. While I can use SetStyle() in the Dailogs constructor the setting change doesn't get...
4
by: Peteroid | last post by:
In a standard GroupBox, how do I make the visible 'border line' not show (it looks like an etched in line about 5 pixels shy of each border of the group box)? Thanks in advance!
5
by: Nad | last post by:
Hello, Could someone please tell me the equivalent of Windows Forms' Groupbox control in ASP.NET? Thanks.
5
by: Jason Huang | last post by:
Hi, I would like to set the GroupBox's border to invisible, how to do that? Thanks for help. Jason
1
by: xujinqian | last post by:
Who can tell me: how to change the border color of groupbox controls(VS2003)???
8
by: Steve | last post by:
Hi All Is there a way to change the colour of a Groupbox border in VB.net 2005 I want to change it to white Can it be done in the onpaint event? Regards Steve
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.