473,394 Members | 1,709 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,394 software developers and data experts.

Want to Create a differently-shaped GroupBox (or the illusion of such...)

As far as I know, Groupboxes only come in one shape, a rectangle. But
on one of my forms, it would be best if I could have a groupbox that's
shaped like this:

_______
| |
_________| |
| |
| |
|_______________|

So what should I do? Any suggestions on reshaping the Groupbox, or
melding two Groupboxes to create a convincing illusion?

TIA!
Nov 20 '05 #1
4 2423
"Failure" <fa*****@failure.com> schrieb
As far as I know, Groupboxes only come in one shape, a rectangle.
But on one of my forms, it would be best if I could have a groupbox
that's shaped like this:

_______
| |
_________| |
| |
| |
|_______________|

So what should I do? Any suggestions on reshaping the Groupbox, or
melding two Groupboxes to create a convincing illusion?

I would not call it a box... Don't use proportional fonts.
--
Armin

Nov 20 '05 #2
Cor
Hi,
There is an example on MSDN
http://msdn.microsoft.com/library/de...lstudionet.asp
Cor
Nov 20 '05 #3
Hello,

"Failure" <fa*****@failure.com> schrieb:
As far as I know, Groupboxes only come in one shape, a rectangle. But
on one of my forms, it would be best if I could have a groupbox that's
shaped like this:

_______
| |
_________| |
| |
| |
|_______________|


Set the control's Region property to a custom shaped region (for example
created from a GraphicsPath) and draw the border yourself (have a look at
the class ControlPaint).

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #4
Thanks for all the suggestions, I'm sure I'll find a suitable way of
doing this now.

On Sat, 30 Aug 2003 13:29:01 +0200, "Herfried K. Wagner [MVP]"
<hi*******@m.activevb.de> wrote:
Hello,

"Failure" <fa*****@failure.com> schrieb:
As far as I know, Groupboxes only come in one shape, a rectangle. But
on one of my forms, it would be best if I could have a groupbox that's
shaped like this:

_______
| |
_________| |
| |
| |
|_______________|


Set the control's Region property to a custom shaped region (for example
created from a GraphicsPath) and draw the border yourself (have a look at
the class ControlPaint).

HTH,
Herfried K. Wagner


Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mike Chirico | last post by:
The first timestamp will always be "automatically generated time." So if the record is updated, or inserted, this time gets changed. However, if the column order is changed with an alter...
32
by: munanxue | last post by:
I remember that I could create a new folder in the current directory easily in Unix and Linux by something like system("mkdir sub_directory"); But failed to do so under Windows System. Any...
182
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
1
by: jschell | last post by:
The following two cases behave differently in Net 2.0. The Case_Create_StringWriter throws an exception while the Case_XmlTextWriter does not. Is there a problem with this code? Or is this a...
4
by: BLob | last post by:
Hi, I need to create an RTF document with PHP. Actually, I am using an already created RTF document which with strings like %var% that I replace with $var before sending the document. I need to...
3
by: Miro | last post by:
I am teaching myself vb, and I was wondering if someone can check my code. -It works, but i was wondering if i was on the right track or if I should have done it differently. -Again - thanks in...
0
by: Rich | last post by:
Hello, When I create an icon in VB2005 icon editor - 32x32, the figure I draw in the editor is not displaying on the icon file in the solution explorere, in windows explorer, on the exe, or on...
5
by: shelleybobelly | last post by:
Hi, I have a new job. It needs to drop and re-create (by insert) a table every night. The table contains approximately 3,000,000 (and growing) records. The insert is fine, runs in 2 minutes. The...
6
by: Samuel | last post by:
Hi I noticed that IE 7 shows the pictures differently they seem smaller or bigger Any clue? Thank you, Samuel
1
by: COHENMARVIN | last post by:
I have a programming problem - I'm supposed to take a gridview listing people, and then link from one row to another to indicate that the people are the same (if they are), even though the name may...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
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,...
0
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...

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.