473,569 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 14132
Hi,
"Ames111" <an*********@4p rojects.com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.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
1287
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 scheme of XP style it looks blue, with green scheme it looks kind of brown. I cannot find what System Color codes should I use. Does any one know?...
4
11898
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 both available and seem identical Just curious
1
13017
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 advance MikeY
2
5598
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 propagated to the groupbox, and since it's a protected method I can't call groupbox.SetStyle(). I've tried deriving a custom class from...
4
11578
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
3936
by: Nad | last post by:
Hello, Could someone please tell me the equivalent of Windows Forms' Groupbox control in ASP.NET? Thanks.
5
12046
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
1660
by: xujinqian | last post by:
Who can tell me: how to change the border color of groupbox controls(VS2003)???
8
28517
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
7700
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7676
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7974
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.