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

Line control??

Hi all,

Lots of MS's apps have horizontal lines in dialogs, that look very much like
thr GroupControl, but they're just single lines. Any way I can have lines
like this in my apps without having a GroupControl with three sides off the
form? ;o)
Nov 17 '05 #1
15 5901
2 Lines, one black, one white.
Move them slowly over each other until you get that 3D look.
You could also make the black one, grey or silver.

Nov 17 '05 #2
A common way to achieve this is to add a label with either width or height
set to 2 and borderstyle set to Fixed3D.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Danny Tuppeny" <gr****@dannytuppeny.commmmmm> wrote in message
news:43***********************@ptn-nntp-reader03.plus.net...
Hi all,

Lots of MS's apps have horizontal lines in dialogs, that look very much
like thr GroupControl, but they're just single lines. Any way I can have
lines like this in my apps without having a GroupControl with three sides
off the form? ;o)

Nov 17 '05 #3
Just out of interest. What about a button.
Top Line: white
Left Line: white
Right Line: Black
Bottom Line: Black

When you click in the area of the button swop the colors.

LOL, wow this takes me back, I must be getting old.......

Nov 17 '05 #4
"Mick Doherty"
<EX***********@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl...
A common way to achieve this is to add a label with either width or height
set to 2 and borderstyle set to Fixed3D.


That's a slightly better hack - thanks! :)
Nov 17 '05 #5
"Kevin" <ke***@inatrice.co.za> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
2 Lines, one black, one white.
Move them slowly over each other until you get that 3D look.
You could also make the black one, grey or silver.


I'm sure that's not how MS do it! ;o)

I assume that would have to be done in code, and can't be done in the
designer. If so, I'll do without - that's messy :)
Nov 17 '05 #6
"Danny Tuppeny" <gr****@dannytuppeny.commmmmm> wrote in message
news:43***********************@ptn-nntp-reader03.plus.net...
A common way to achieve this is to add a label with either width or height
set to 2 and borderstyle set to Fixed3D.


That's a slightly better hack - thanks! :)


And it looks *exactly* as it should. Now I know how MS do it! ;O)
Nov 17 '05 #7
Oh no, by the way that's exactly how MS do it.
How do you think the label control you are using now is drawn.
It's all lines, just lines. I'm almost positive you'll click it in the
end.

Nov 17 '05 #8

I use panel with height set to 1 pix (or width in case of vertical
line)

same way colored frames around say a text box - you put text box
withoug a border in a panel that is slightly larger, then by changing
back color of panel you get that border effect for your text box and
you can change the color if you wont instead sticking with black only

hope it helps

On Wed, 5 Oct 2005 18:46:25 +0100, "Danny Tuppeny"
<gr****@dannytuppeny.commmmmm> wrote:
Hi all,

Lots of MS's apps have horizontal lines in dialogs, that look very much like
thr GroupControl, but they're just single lines. Any way I can have lines
like this in my apps without having a GroupControl with three sides off the
form? ;o)


Nov 17 '05 #9
"Dino Buljubasic" <di**@noplacelikehome.com> wrote in message
news:pn********************************@4ax.com...
I use panel with height set to 1 pix (or width in case of vertical
line)

same way colored frames around say a text box - you put text box
withoug a border in a panel that is slightly larger, then by changing
back color of panel you get that border effect for your text box and
you can change the color if you wont instead sticking with black only

hope it helps


LOL! That's just sick!!

*makes notes*
Nov 17 '05 #10
Danny Tuppeny wrote:
Lots of MS's apps have horizontal lines in dialogs, that look very much
like thr GroupControl, but they're just single lines. Any way I can have
lines like this in my apps without having a GroupControl with three sides
off the form? ;o)


In addition to the hacks others have suggested - just create a simple
control yourself. Have a look at my blog post:

http://www.sturmnet.org/blog/archive...izontal-lines/
Oliver Sturm
--
Expert programming and consulting services available
See http://www.sturmnet.org (try /blog as well)
Nov 17 '05 #11
"Oliver Sturm" <ol****@sturmnet.org> wrote in message
news:xn****************@msnews.microsoft.com...
Lots of MS's apps have horizontal lines in dialogs, that look very much
like thr GroupControl, but they're just single lines. Any way I can have
lines like this in my apps without having a GroupControl with three sides
off the form? ;o)


In addition to the hacks others have suggested - just create a simple
control yourself. Have a look at my blog post:

http://www.sturmnet.org/blog/archive...izontal-lines/


Are you following me around? ;oP

The lines I was looking at can be seen at the bottom of the dialog in Visual
C# Express here:

http://dantup.me.uk/tmp/line.jpg

Your solution is certainly more elegant than the Label! I'll add it to my
project! :)
Nov 17 '05 #12
Danny Tuppeny wrote:
Are you following me around? ;oP


I think I know your name from the Developer Express newsgroups, is that
right?

Oliver Sturm
--
Expert programming and consulting services available
See http://www.sturmnet.org (try /blog as well)
Nov 17 '05 #13
"Oliver Sturm" <ol****@sturmnet.org> wrote in message
news:xn****************@msnews.microsoft.com...
Are you following me around? ;oP


I think I know your name from the Developer Express newsgroups, is that
right?


Yeah, I'm on your msn list!

We chatted about XPO & Web Services a few weeks back (and you wrote an
article on how to do what I couldn't!)!

Incidently, I've bene looking at db4o, which is not only free, but it works
by passing objects to the objectContainer, rather than inheriting from them,
so your classes are "clean" and can easily be passed over web services :)
Nov 17 '05 #14
Danny Tuppeny wrote:
I think I know your name from the Developer Express newsgroups, is that
right?
Yeah, I'm on your msn list!


Whoops :-) You are right, of course.
Incidently, I've bene looking at db4o, which is not only free, but it
works by passing objects to the objectContainer, rather than inheriting
from them, so your classes are "clean" and can easily be passed over web
services :)


It's GPL and it requires runtime licenses for commercial use... Not a
licensing model I count as a personal favourite. But if that's not a
problem for you, it certainly looks like an interesting product.
Oliver Sturm
--
Expert programming and consulting services available
See http://www.sturmnet.org (try /blog as well)
Nov 17 '05 #15
"Oliver Sturm" <ol****@sturmnet.org> wrote in message
news:xn****************@msnews.microsoft.com...
Incidently, I've bene looking at db4o, which is not only free, but it
works by passing objects to the objectContainer, rather than inheriting
from them, so your classes are "clean" and can easily be passed over web
services :)


It's GPL and it requires runtime licenses for commercial use... Not a
licensing model I count as a personal favourite. But if that's not a
problem for you, it certainly looks like an interesting product.


Whoops! I got carried away. I'm using it in my app (which will now be GPL,
so I can use it free)! :)

I also intend to compare the commercial cost (vs XPO, and some others) for
our apps at work - I'm sick of SQL Server! It can't even return a tree with
unlimited levels without something messy like cursors! :-(
Nov 17 '05 #16

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

Similar topics

1
by: Dennis | last post by:
Hello, Ive to draw a line on a picture i used this code: Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) x1 = z.X y1 = z.Y lbl3 = "x1: " & x1 lbl4...
3
by: michael | last post by:
On my ASP.NET pages, it seems that _after_ any web or user control - an extra (small) line break or space is inserted automatically right after the Control. This is unwanted since it messes up...
7
by: Jacky Luk | last post by:
Does anyone know of a downloadable Line ActiveX control which allows me to plot straight lines on a VC++.NET form? Thanks Jack
22
by: DraguVaso | last post by:
Hi, For my application I need the following behavior: When I press F4 the cursor has to move to the next line in my multiline textbox which begins with "0". Finding lines starting with 0 isn't...
3
by: Troy | last post by:
ok, I fat-fingered the Line control in the Crystal Reports tab of the toolbox and now its gone. I can still insert lines with a right-click, but where is the Line control? I found the...
0
by: ray well | last post by:
hi, my app has two parallel rich text boxes containing the same content in 2 different languages. the lines parallel each other, line #3 in english contains the same content as line #3 in...
0
by: Kieran Toon | last post by:
I'm using Visual Studio 2005 and have an ASP.NET web application written in Visual Basic. When the application runs on my local webserver and hits an error, my errorhandler writes out debug...
3
by: Beorne | last post by:
Hello, I have to ralize a graph with a pair of straight vertical lines that have to be dragged in the left-right direction with the mouse. I've never done something similar so I wonder if someone...
19
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
This is an example of the data; 2007/07/27 11:00:03 ARES_INDICATION 010.050.016.002 404.2.01 (6511) RX 74 bytes 2007/07/27 11:00:03 65 11 26 02 BC 6C AA 20 76 93 51 53 50 76 13 48...
12
by: Dom | last post by:
VB had a "line" control, just a simple line that let you separate controls without the wasted space of a Groupbox. Did CSharp drop this? Dom
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.