.NET Forum / Windows Forms / WinForm General / March 2007
Basic Separator Line Control
|
|
Thread rating:  |
Digital Slug - 27 Feb 2007 18:35 GMT 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
David Wier - 27 Feb 2007 19:43 GMT Are you talking about a line, to go on a form, or a separator to go between menu items?
 Signature David Wier MVP/ASPInsider http://aspnet101.com http://aspexpress.com
> Hello, > [quoted text clipped - 14 lines] > > Thank you RobinS - 27 Feb 2007 20:16 GMT 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. ------------------------------------
> Hello, > [quoted text clipped - 15 lines] > > Thank you Herfried K. Wagner [MVP] - 27 Feb 2007 21:10 GMT "Digital Slug" <DigitalSlugnospamalias@newsgroups.nospam> schrieb:
> Is there a basic "Separating Line" control or "Bevel Line" control. It > appears as a simple 3D line. 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.
 Signature M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Digital Slug - 27 Feb 2007 23:18 GMT 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.
> "Digital Slug" <DigitalSlugnospamalias@newsgroups.nospam> schrieb: > > Is there a basic "Separating Line" control or "Bevel Line" control. It [quoted text clipped - 5 lines] > Alternatively you can use a label control with width or height set to 2, and > 'BorderStyle' set to 'Fixed3D' to create an inset line. RobinS - 27 Feb 2007 23:34 GMT 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. ----------------------------------
> Oh my goodness.... > That's so cheesy, but it works!!! [quoted text clipped - 23 lines] >> and >> 'BorderStyle' set to 'Fixed3D' to create an inset line. Digital Slug - 28 Feb 2007 19:10 GMT "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....
> I would point out that these answers were free, you could have gotten them > w/o an MSDN subscription. :-) We're not MSFT employees. [quoted text clipped - 30 lines] > >> and > >> 'BorderStyle' set to 'Fixed3D' to create an inset line. Herfried K. Wagner [MVP] - 28 Feb 2007 19:36 GMT "Digital Slug" <DigitalSlugnospamalias@newsgroups.nospam> schrieb:
> "I would point out that these answers were free...." > [quoted text clipped - 5 lines] > > Do not kill my joy.... You are invited to post some answers yourself as a thank you if the answer you got has been helpful.
:-)
 Signature M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Digital Slug - 01 Mar 2007 21:43 GMT "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
> "Digital Slug" <DigitalSlugnospamalias@newsgroups.nospam> schrieb: > > "I would point out that these answers were free...." [quoted text clipped - 11 lines] > > :-) RobinS - 28 Feb 2007 22:26 GMT 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. ----------------------------------------
> "I would point out that these answers were free...." > [quoted text clipped - 44 lines] >> >> and >> >> 'BorderStyle' set to 'Fixed3D' to create an inset line. Digital Slug - 01 Mar 2007 21:41 GMT "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.....
> 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. [quoted text clipped - 51 lines] > >> >> and > >> >> 'BorderStyle' set to 'Fixed3D' to create an inset line. RobinS - 02 Mar 2007 01:33 GMT > 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. Well, it's good to have *something* that makes you feel that way. Beer would be cheaper, though. ;-)
> 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. 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. ------------------------------------
> "You are invited to post some answers yourself as a thank you if the > answer [quoted text clipped - 79 lines] >> >> >> and >> >> >> 'BorderStyle' set to 'Fixed3D' to create an inset line. Digital Slug - 04 Mar 2007 18:01 GMT "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!
> > 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. [quoted text clipped - 101 lines] > >> >> >> and > >> >> >> 'BorderStyle' set to 'Fixed3D' to create an inset line. RobinS - 04 Mar 2007 18:36 GMT > Tah tah....my application isn't going to document itself! 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. -----------------------------------------
> "Well, it's good to have *something* that makes you feel that way. Beer > would be cheaper, though. ;-)" [quoted text clipped - 127 lines] >> >> >> >> and >> >> >> >> 'BorderStyle' set to 'Fixed3D' to create an inset line. Digital Slug - 05 Mar 2007 23:54 GMT "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
> > Tah tah....my application isn't going to document itself! > [quoted text clipped - 138 lines] > >> >> >> >> and > >> >> >> >> 'BorderStyle' set to 'Fixed3D' to create an inset line. RobinS - 06 Mar 2007 00:31 GMT 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. ------------------------------------
> "It would if you put XML comments in it. Then you could generate the > documentation." [quoted text clipped - 184 lines] >> >> >> >> >> and >> >> >> >> >> 'BorderStyle' set to 'Fixed3D' to create an inset line. Digital Slug - 06 Mar 2007 23:55 GMT " 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
> Slugboy, > [quoted text clipped - 196 lines] > >> >> >> >> >> and > >> >> >> >> >> 'BorderStyle' set to 'Fixed3D' to create an inset line. RobinS - 07 Mar 2007 03:44 GMT >" I didn't mean that to sound snotty." > [quoted text clipped - 3 lines] > 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. Well, I *do* have a sinus infection, which probably explains a lot.
> "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...... 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.)
> "Have fun with your user documentation. Been there, done that." > > Oh now...you can't be that old. :-) You'd be surprised.
Have fun, slugboy. Robin S.
Digital Slug - 08 Mar 2007 18:36 GMT "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. :-)
> 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.)
> You'd be surprised. > > Have fun, slugboy. > Robin S.
> >" I didn't mean that to sound snotty." > > [quoted text clipped - 25 lines] > Have fun, slugboy. > Robin S. RobinS - 09 Mar 2007 18:38 GMT 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.
> PS: Your name is gender-neutral so I can use boy or girl jabs anytime I > want. :-) 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. -----------------------------------------------------------
> "But what if I have to change something, remove a procedure, add a new > one?" [quoted text clipped - 77 lines] >> Have fun, slugboy. >> Robin S. Digital Slug - 10 Mar 2007 01:01 GMT "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?
> Hello, slugboy, > [quoted text clipped - 93 lines] > >> Have fun, slugboy. > >> Robin S. RobinS - 11 Mar 2007 18:04 GMT Hello, DigitalSlugBoy,
> Ugh....you do realize that "Aaron" is gender neutral too right? Just > savoring the irony. 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.
> Believe it or not, I wasn't baiting you. I'm far too subtle for that > anyway. > :-P I didn't take it that way, so if you *were* baiting me, it wouldn't have worked anyway!
> "Robin S., Ts'i mahnu uterna ot twan ot geifur hingts uto." Think about it. Each word is an anagram, much like life.
> 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. 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.
> RobinS of Arcadia, That show (Joan of A) was cancelled, and just when it was getting interesting...
> 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? 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." -------------------------------------------------------------------
> "I hate to tell you this, but I'm a Pepsi drinker." > [quoted text clipped - 160 lines] >> >> Have fun, slugboy. >> >> Robin S. Digital Slug - 12 Mar 2007 22:04 GMT 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
> Hello, DigitalSlugBoy, > [quoted text clipped - 49 lines] > Robin S. > Ts'i *listl* mahnu uterna ot twan ot geifur hingts uto." RobinS - 14 Mar 2007 02:58 GMT > 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. For me, it's just the time change killing me. I want my damn hour back.
> 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. 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.
> 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? 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.)
> 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. I can't even imagine that. But I wonder how that guy feels about them making a movie about him. Do you think he looks at it and says, "Why couldn't they get Tom Cruise to play me?"
The closest I get to outdoors is looking out the window while I'm typing. Although now that it's warm again here in California (at least temporarily), I have to admit I'm wondering if my bike tires are flat.
> Television has been going downhill since the X-Files. I'm a Law&Order fan, which means there's *always* something on tv for *me* to watch, because it's on all the time!
Robin S. ----------------------------
> Hey Robin Shortz (spawn of Will Shortz) > [quoted text clipped - 53 lines] > "Just because I'm paranoid doesn't mean people aren't out to get me." > -F.M., The X-Files <snip>
Digital Slug - 15 Mar 2007 17:43 GMT “For me, it's just the time change killing me. I want my damn hour back.”
Ditto, I’ve been dragging all week. Hopefully this won’t go on for another 2 weeks.
“Oh, dear. I actually *owned* a BetaMax. I don't even want to *talk* about how much I paid for it”
You’re showing you age again! I was around for BetaMax, but not old enough to purchase o’ wise elder. (Strike the wise adjective)
“Do you think you're a Jedi or something?”
Ugh yeah….forth order tuts. Recall that the weak minded are easy to control. “For me, it's just the time change killing me….” Using this information, I’ve confirmed that you live neither in Hawaii nor Arizona. Only 48 more states to check. Never mind that you said you live in California. :-P
My stealthy ninja-like mind-control strategy is providing me with all the information I need. “Your feeble skills are no match for the [slug-side]….Young fool, only now at the end do you realize….”
“That's why I won't buy either BluRay or HD DVD until they decide which one is going to win the war.”
Read Previous Post: Video tape is coming back in a big way. There’s no need to buy any other electronic equipment. Just be patient and wait for the second coming.
“I can't even imagine that. But I wonder how that guy feels about them making a movie about him.” I like the movie version. The main suspect died of a heart attack. Gotta lay off those Twinkies.
"Why couldn't they get Tom Cruise to play me?" True, he’s nearly as weird.
“The closest I get to outdoors is looking out the window…” Life is too short for window shopping all day. My new office space doesn’t have windows!
“Although now that it's warm again here in California….” My commute sucks and I’m not looking forward to sitting in the California heat after a long day. Grumble. (Intentional disclosure :-P)
“I'm a Law&Order fan, which means there's *always* something on tv for *me* to watch, because it's on all the time!”
Lawyers on the first floor…lawyers next door…I’ll pass on any and all things legal.
Later Flying Robin
> > I'll have to apologize, between the time change and "wrapping up a > > module" I [quoted text clipped - 102 lines] > > > <snip> RobinS - 16 Mar 2007 17:33 GMT Hello DigiSlug,
> Read Previous Post: Video tape is coming back in a big way. There's no > need > to buy any other electronic equipment. Just be patient and wait for the > second coming. Yeah, you just keep waiting for that. LOL. Excuse me while I go add some more disk space to my Tivo...
> My stealthy ninja-like mind-control strategy is providing me with all the > information I need. "Your feeble skills are no match for the > [slug-side]..Young fool, only now at the end do you realize.." The slug-side? Careful about using StarWars-like nomenclature. Don't be makin' any money off of it. The DoubleL's are even more aggressive than Apple is about anything starting with "i" or having "pod" in the title.
> My commute sucks and I'm not looking forward to sitting in the California > heat after a long day. Grumble. Northern or Southern? Probably Southern. It's not that warm up here yet, except a couple of days last week. It's back to the 60's, fortunately only weatherwise and not chronologically speaking.
As our Governator would say, Hasta La Vista, slug-boy.
Robin S. p.s. DoubleL's == LucasfilmLawyers ---------------------------------------------------------------------
> "For me, it's just the time change killing me. I want my damn hour back." > [quoted text clipped - 60 lines] > > Later Flying Robin
Free MagazinesGet these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...
|
|
|