all groups > dotnet windows forms > february 2007 >
You're in the

dotnet windows forms

group:

Basic Separator Line Control



Basic Separator Line Control Digital Slug
2/27/2007 10:35:03 AM
dotnet windows forms: Hello,

I finally have to breakdown and ask.....

Is there a basic "Separating Line" control or "Bevel Line" control. It
appears as a simple 3D line.

I'd like to know if there is such a control or will I have to create my own
line control?

Examples: (Observe lines on these screen)

1) Use any generic file, Right-click file --> Properties --> General Tab

2) Open any Setup Wizard, observe line appearing between buttons wizard
content.


Thank you


Re: Basic Separator Line Control RobinS
2/27/2007 12:16:58 PM
I use a label with height = 1. Or you can draw a line if you really just
want a line.

Or are you talking about a separator on a menu?

Robin S.
------------------------------------
[quoted text, click to view]

Re: Basic Separator Line Control David Wier
2/27/2007 1:43:20 PM
Are you talking about a line, to go on a form, or a separator to go between
menu items?

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com


[quoted text, click to view]

Re: Basic Separator Line Control Digital Slug
2/27/2007 3:18:36 PM
Oh my goodness....
That's so cheesy, but it works!!!

Yes, I was inquiring about a basic line, not the splitter control.

That you all for your quick responses. It helps dull the pain of renewing my
MSDN subscription.

Not to mention I can now add several dozen badly needed/required line
separators.


Thanks again!

PS: I'm curious to know if this technique will hold up under Windows Vista.



[quoted text, click to view]
Re: Basic Separator Line Control RobinS
2/27/2007 3:34:55 PM
I would point out that these answers were free, you could have gotten them
w/o an MSDN subscription. :-) We're not MSFT employees.

I don't see any reason this wouldn't work under Vista.

Robin S.
----------------------------------
[quoted text, click to view]

Re: Basic Separator Line Control Herfried K. Wagner [MVP]
2/27/2007 10:10:36 PM
"Digital Slug" <DigitalSlugnospamalias@newsgroups.nospam> schrieb:
[quoted text, click to view]

Wrapping Win32 Controls in .NET - Horizontal and Vertical Rules
<URL:http://www.codeproject.com/cs/miscctrl/hvrules1.asp>

Alternatively you can use a label control with width or height set to 2, and
'BorderStyle' set to 'Fixed3D' to create an inset line.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Re: Basic Separator Line Control Digital Slug
2/28/2007 11:10:20 AM
"I would point out that these answers were free...."

Rationalizing....
No..no....that's not true. I wouldn't have gotten a fast response without a
MSDN Subscription. My subscription is critical to my success as a developer.

Do not kill my joy....



[quoted text, click to view]
Re: Basic Separator Line Control RobinS
2/28/2007 2:26:37 PM
Well, you know, if you want to have an MSDN subscription, and it makes you
feel better and is helpful to you, then you should have it.

But this was still free advice! :-D

Robin S.
----------------------------------------
[quoted text, click to view]

Re: Basic Separator Line Control Herfried K. Wagner [MVP]
2/28/2007 8:36:41 PM
"Digital Slug" <DigitalSlugnospamalias@newsgroups.nospam> schrieb:
[quoted text, click to view]

You are invited to post some answers yourself as a thank you if the answer
you got has been helpful.

:-)

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Re: Basic Separator Line Control Digital Slug
3/1/2007 1:41:31 PM

"You are invited to post some answers yourself as a thank you if the answer
you got has been helpful. :-)" --H. Wagner

Hey...hey....I've been known to help with the dishes from time to time. :-P


"and it makes you feel better and is helpful to you, then you should have
it." --RobinS

My MSDN Subscription definitely makes me feel better about myself. I'm
happier and feel tingly all over. Yeah...it's definitely working for me.


But back on the subject of software....
Granted, it's easy enough to use a Label to create a line, but I don't
understand why MS doesn't create a dedicated control for something so common.
I would think they would create one just to help keep things nice and tidy.

Thinking out loud.....


[quoted text, click to view]
Re: Basic Separator Line Control Digital Slug
3/1/2007 1:43:33 PM
"You are invited to post some answers yourself as a thank you if the answer
you got has been helpful. :-)" --H. Wagner

Hey...hey....I've been known to help with the dishes from time to time. :-P





[quoted text, click to view]
Re: Basic Separator Line Control RobinS
3/1/2007 5:33:28 PM
[quoted text, click to view]

Well, it's good to have *something* that makes you feel that way. Beer
would be cheaper, though. ;-)

[quoted text, click to view]

Well, you could *draw* a line, but then you'd have to figure out exactly
where you wanted it. Their reasoning for not including this sort of thing
completely escapes me. As frequently as the question comes up in the
microsoft.public.dotnet.* newsgroups, it's obviously something that's
needed. I'm sure if I worked for Microsoft, I could get them to listen to
reason. Haha!

Robin S.
------------------------------------
[quoted text, click to view]

Re: Basic Separator Line Control Digital Slug
3/4/2007 10:01:13 AM
"Well, it's good to have *something* that makes you feel that way. Beer
would be cheaper, though. ;-)"

True, but Nancy Regan once said, "Just Say No To Drugs [and Beer]"
Neither of which is conducive to writing good source code.

"....it's obviously something that's needed. I'm sure if I worked for
Microsoft, I could get them to listen to reason. Haha!"

If you were the Microsoft employee that created a line control, you'd
definitely earn you place on Oprah. Yeah, that's a control you could
definitely build a career on.

Tah tah....my application isn't going to document itself!


[quoted text, click to view]
Re: Basic Separator Line Control RobinS
3/4/2007 10:36:14 AM
[quoted text, click to view]

It would if you put XML comments in it. Then you could generate the
documentation.

And if you figured out how to get code to generate its *own* documentation,
you would be revered and worshipped by programmers around the world. That's
bigger than even Oprah (I know, hard to imagine).

Robin S.
-----------------------------------------
[quoted text, click to view]

Re: Basic Separator Line Control Digital Slug
3/5/2007 3:54:57 PM
"It would if you put XML comments in it. Then you could generate the
documentation."

Why thank you O' Wise_One. However, Mr. Slug does know how to auto generate
source code documentation. Just because I look goofy doesn't mean I am goofy.
:-/

Actually, I'm responsible for user documentation as well. Yes, I bring a
whole new meaning to the phrase "One-Stop Shopping." Kudos aren't free! It's
not a sin to have good writing skills.

Later RobinSsssssss.......

:-P





[quoted text, click to view]
Re: Basic Separator Line Control RobinS
3/5/2007 4:31:13 PM
Slugboy,

I didn't mean that to sound snotty. Did you know a lot of people don't
actually know that? And since I spent quite a bit of Saturday going through
and adding XML comments to one of my own projects, it was uppermost in my
mind. (I don't understand why I can't add the darn things as I go along. So
annoying.)

Have fun with your user documentation. Been there, done that.

Robin S.
------------------------------------
[quoted text, click to view]
Re: Basic Separator Line Control Digital Slug
3/6/2007 3:55:07 PM
" I didn't mean that to sound snotty."

It's okay...I wasn't offended in the least. Actually, I enjoy genuine
snottiness. It's hard to find high quality snot these days. People try, but
it's mostly thin and watered down. It's all about nose shape, humidity,
temperature. That's how you get the good stuff. Yes indeed.

"I don't understand why I can't add the darn things as I go along."

Ugh...sure you can....ugh...just add them as you go along.
Sounds like a new thread to me. Muhahahaha......

"Have fun with your user documentation. Been there, done that."

Oh now...you can't be that old. :-)

Later Robin_Capital_S


[quoted text, click to view]
Re: Basic Separator Line Control RobinS
3/6/2007 7:44:01 PM

[quoted text, click to view]

Well, I *do* have a sinus infection, which probably explains a lot.

[quoted text, click to view]

But what if I have to change something, remove a procedure, add a new one?
I'd have to change the comments. (You need to read that in exactly the same
tone of voice as Hayden Christensen playing Anakin Skywalker in SW2 Attack
of the Clones said, "Obi-Wan is holding me back!!" -- as whiny as
possible.)

[quoted text, click to view]

You'd be surprised.

Have fun, slugboy.
Robin S.

Re: Basic Separator Line Control Digital Slug
3/8/2007 10:36:31 AM
"But what if I have to change something, remove a procedure, add a new one?"

Well Robin Sykwalker, if you're using XML tags in your code, you should be
able to edit your comments. If you're deleting obsolete procedures, wouldn't
you want to toss obsolete documentation? (Ponder that grasshopper) You can
always just comment out your....well comments. You know you can put your
documentation/comments anywhere you want.

We're counting on you Robin, don't go "End User" on us! :-P

Use the force.....or IBM's Sever Pixy dust. Both will do the trick.

"You need to read that in exactly the same tone of voice as Hayden
Christensen....."

Yeah, that was high-quality whining. Now you're really showing your age.
You chose Classic Coke and criticized New Coke.

Senator...I knew Anakin Skywalker....
I served with Anakin Skywalker.....
I worked with Anakin Skywalker.....
Robin.....you're no Anakin Skywalker.....


Happy computing Boy Wonder,
DS

PS: Your name is gender-neutral so I can use boy or girl jabs anytime I
want. :-)





[quoted text, click to view]


[quoted text, click to view]


[quoted text, click to view]
Re: Basic Separator Line Control RobinS
3/9/2007 10:38:43 AM
Hello, slugboy,

You're cracking me up!

I hate to tell you this, but I'm a Pepsi drinker. But I do remember when
they came out with New Coke.

[quoted text, click to view]

And I refrain from saying, primarily because it was really irritating that
troll, AaronKempf, who kept trying to bait me.

Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------------------
[quoted text, click to view]

Re: Basic Separator Line Control Digital Slug
3/9/2007 5:01:00 PM
"I hate to tell you this, but I'm a Pepsi drinker."

(Shoulder shrug)
Coke….Pepsi, they both leave a weird aftertaste in your mouth. Go with OJ.

“But I do remember when they came out with New Coke.”
Confirmed…old as dirt. :-P
It’s been a long week and I still got it!


“And I refrain from saying, primarily because it was really irritating that
troll, AaronKempf, who kept trying to bait me.”

Ugh....you do realize that "Aaron" is gender neutral too right? Just
savoring the irony.

Actually, I’m quite alright with life’s ambiguities. In my book, everyone is
a “Pat” in our wonderful little online world we’ve created.

“PS: Your name is gender-neutral so I can use boy or girl jabs anytime I
want. :-)”

Believe it or not, I wasn’t baiting you. I’m far too subtle for that anyway.
:-P
I’m just relieved that I have another source of new material. Ambiguity
opens many doors for new puns. Ponder the possibilities. Really, I’m just
glad I didn’t have to resort to my B-Grade material. Not pretty. A few more
replies and my stuff was gonna get really thin. Yep...real thin. I’m good
for another 6, 7, maybe 8 more replies. Phew…..


“Robin S., Ts'i mahnu uterna ot twan ot geifur hingts uto.”

What? What the heck is that? Boy Wonder, what are you up to? Are you signing
your emails? Are you leaving a bread crumb trail? I’ll have you know I’m an
expert with The Google.

“I have all your powers….in fact, I have more.”

Until later RobinS of Arcadia,

Oh…
Since you’re sitting there twiddling your thumbs. Question. Is there a
reason why Tab Pages can’t be made invisible? Am I missing an obscure
property? Yes, I know about the TabPage.Visible property. (Do not waste snot)
That property isn't working.

PS: Bread crumbs? Didn’t Kevin Spacey do the same thing in SEVEN? Does this
end in my unpleasant demise? Tell me, how’s it going to end?





[quoted text, click to view]
Re: Basic Separator Line Control RobinS
3/11/2007 10:04:35 AM
Hello, DigitalSlugBoy,

[quoted text, click to view]

Well, sort of. When it's a woman, it's usually spelled Erin.

And Aaron is a nutcase. He mostly posts to
microsoft.public.dotnet.languages.vb, and he's abusive and obnoxious.
Apparently he can't deal with learning .Net, so he's trying to terrorize
the rest of us (and Microsoft) into reverting to VB6. ROFL.

[quoted text, click to view]

I didn't take it that way, so if you *were* baiting me, it wouldn't have
worked anyway!

[quoted text, click to view]

Think about it. Each word is an anagram, much like life.

[quoted text, click to view]

I've seen this question before. I believe you have to remove the tab, and
then when you want it back, add it back in. It's annoying.

You might try using panels. I saw a keen UI design where down the left side
of the screen, it has bunch of icons, and as you selected each one, the
whole right side of the screen changed. They did that by putting all of the
controls for each option in a panel. When you select one, it makes all of
the panels invisible, and then visibles the one you want to see. Quite
slick, I must admit.

[quoted text, click to view]

That show (Joan of A) was cancelled, and just when it was getting
interesting...

[quoted text, click to view]

Tetanus. From papercuts you got leafing through the tech books you own.
When's the last time you had a tetanus shot? >:-O

Robin S.
Ts'i *listl* mahnu uterna ot twan ot geifur hingts uto."
-------------------------------------------------------------------
[quoted text, click to view]
Re: Basic Separator Line Control Digital Slug
3/12/2007 2:04:08 PM
Hey Robin Shortz (spawn of Will Shortz)

“Well, sort of. When it's a woman, it's usually spelled Erin.”
Tomato…Tomatoe…

I’ll have to apologize, between the time change and “wrapping up a module” I
didn’t get any sleep. So I’m al little off my game.

“Apparently he can't deal with learning .Net, so he's trying to terrorize
the rest of us (and Microsoft) into reverting to VB6.:

Attack of the Ludites!!!
It’s always difficult to deal with an office full of people that can’t
handle change. No, that statement in no way applies to my current employer.
:-P

Honestly, I’m waiting for the return of BetaMax. It’s gonna make a comeback
in a big way. You’ll see. I’ll show you.


“I didn't take it that way, so if you *were* baiting me, it wouldn't have
worked anyway!”

Like I said, I’m okay with ambiguity. You could be a lady or you could be a
boy. Come to think of it, you could be a lady-boy. Fatigued, but I still got
it!

“…, it wouldn't have worked anyway!”
Ugh yeah...you are in no way under the influence. How do you know I’m not
using mind-control powers as we speak? Hhhmmmm….egh?


"Robin S., Ts'i mahnu uterna ot twan ot geifur hingts uto……Think about it.
Each word is an anagram, much like life.”

Wow, who would have ever thought that the Zodiac killer gave up homicide for
software development? That must have been a rough transition for you…going
from stalking to sitting in front of a PC all day. You strike me as an
outdoorsy kinda person.

“RobinS of Arcadia,….That show (Joan of A) was cancelled, and just when it
was getting
interesting...”

Television has been going downhill since the X-Files.

Later RobinS(lug)

“Just because I’m paranoid doesn’t mean people aren’t out to get me.”
-F.M., The X-Files


[quoted text, click to view]
Re: Basic Separator Line Control RobinS
3/13/2007 6:58:01 PM

[quoted text, click to view]

For me, it's just the time change killing me. I want my damn hour back.

[quoted text, click to view]

Oh, dear. I actually *owned* a BetaMax. I don't even want to *talk* about
how much I paid for it. That's why I won't buy either BluRay or HD DVD
until they decide which one is going to win the war. I'm afraid whichever
side I pick will lose. (Too bad I can't market that kind of karma.) Anyway,
I learned my lesson.

[quoted text, click to view]

Do you think you're a Jedi or something? (Insert Jabba the Hutt's laughter
here -- from the scene where they have released Han Solo from the carbonite
and they think they're going to get away in the dark, and up wells Jabba's
low HUH HUH HUH HUH HUH.)

[quoted text,