Click here to Skip to main content

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Thinking Inside the Box Pinmemberkmoorevs29-Apr-14 11:51 
GeneralRe: Thinking Inside the Box PinprotectorOriginalGriff30-Apr-14 8:13 
GeneralRe: Thinking Inside the Box PinprofessionalArgonia30-Apr-14 5:00 
GeneralRe: Thinking Inside the Box PinmvpRyanDev29-Apr-14 12:52 
Generalconscious perma-coupling PinpremiumDuncan Edwards Jones20-Apr-14 12:17 
GeneralRe: conscious perma-coupling PinmemberShameel21-Apr-14 0:53 
GeneralRe: conscious perma-coupling PinpremiumBobJanova21-Apr-14 23:58 
GeneralRe: conscious perma-coupling PinpremiumDuncan Edwards Jones22-Apr-14 0:10 
GeneralRe: conscious perma-coupling PinpremiumJacek Gajek30-Apr-14 22:18 
GeneralRtf -WTF: why is it different? PinprofessionalBernhard Hiller15-Apr-14 4:56 
GeneralRe: Rtf -WTF: why is it different? Pinmemberledtech315-Apr-14 5:11 
GeneralRe: Rtf -WTF: why is it different? PinprofessionalBernhard Hiller15-Apr-14 20:55 
GeneralRe: Rtf -WTF: why is it different? Pinmemberledtech316-Apr-14 4:28 
GeneralRe: Rtf -WTF: why is it different? PinmemberRob Grainger16-Apr-14 0:08 
I'm not certain, but suspect it is due to the fact that an RTF document contains various sections in addition to the formatting codes needed. Here's one version of the spec: RTF 1.7[^] (not the latest, but most should be similar).
 
A bit like copying HTML to clipboard - if just the markup is copied, other information supplied in the header section may be omitted, so styles etc. wouldn't work correctly. The SelectedText may contain just enough of these for the selection, while the Rtf property will, presumably, include all those in the entire RTF "document" including standard "document level" header sections (a bit like the <head> section in HTML).
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.

GeneralRe: Rtf -WTF: why is it different? PinprofessionalManikandan1011-Jun-14 3:31 
General#region PinprofessionalBernhard Hiller11-Apr-14 2:51 
GeneralRe: #region Pinmembertgrt11-Apr-14 3:58 
GeneralRe: #region PinprotectorOriginalGriff11-Apr-14 5:41 
GeneralRe: #region PinprofessionalBernhard Hiller13-Apr-14 20:40 
GeneralRe: #region PinprotectorOriginalGriff13-Apr-14 21:00 
GeneralRe: #region PinprofessionalBrisingr Aerowing11-Apr-14 5:46 
GeneralRe: #region PinmemberShameel21-Apr-14 0:57 
GeneralRe: #region PinpremiumBobJanova11-Apr-14 6:51 
GeneralRe: #region PinprofessionalRichard Andrew x6411-Apr-14 8:29 
JokeRe: #region PinpremiumSander Rossel24-Apr-14 7:33 
GeneralRe: #region PinmemberGiuseppe Tollini24-May-14 1:05 
GeneralRe: #region PinprofessionalBernhard Hiller29-May-14 20:59 
GeneralHow not to create an instance of a singleton PinprofessionalDennis_E10-Apr-14 23:59 
JokeRe: How not to create an instance of a singleton PinprofessionalNicholas Marty11-Apr-14 0:25 
GeneralRe: How not to create an instance of a singleton PinprotectorMarc Clifton11-Apr-14 1:40 
GeneralRe: How not to create an instance of a singleton PinprofessionalNicholas Marty11-Apr-14 3:16 
GeneralRe: How not to create an instance of a singleton PinprotectorMarc Clifton11-Apr-14 4:52 
GeneralRe: How not to create an instance of a singleton PinprofessionalDennis_E24-Apr-14 1:16 
GeneralRe: How not to create an instance of a singleton PinprofessionalNicholas Marty24-Apr-14 3:20 
GeneralRe: How not to create an instance of a singleton PinpremiumBobJanova11-Apr-14 6:50 
GeneralRe: How not to create an instance of a singleton PinprofessionalBernhard Hiller11-Apr-14 2:21 
GeneralRe: How not to create an instance of a singleton PinprotectorOriginalGriff11-Apr-14 5:42 
GeneralRe: How not to create an instance of a singleton PinpremiumJacek Gajek29-Apr-14 10:51 
GeneralThere is nothing new under the sun... PinpremiumDuncan Edwards Jones9-Apr-14 7:22 
GeneralRe: There is nothing new under the sun... PinmemberI.explore.code9-Apr-14 7:41 
GeneralRe: There is nothing new under the sun... PinadminChris Maunder9-Apr-14 7:55 
GeneralRe: There is nothing new under the sun... PinpremiumKornfeld Eliyahu Peter9-Apr-14 10:05 
GeneralRe: There is nothing new under the sun... PinmemberRob Grainger10-Apr-14 23:30 
GeneralRe: There is nothing new under the sun... PinpremiumDuncan Edwards Jones10-Apr-14 23:49 
GeneralRe: There is nothing new under the sun... PinpremiumSander Rossel24-Apr-14 7:42 
GeneralHow not to do transaction processing PinmemberRob Grainger9-Apr-14 6:12 
GeneralRe: How not to do transaction processing PinpremiumDuncan Edwards Jones9-Apr-14 7:13 
GeneralRe: How not to do transaction processing PinmemberRob Grainger10-Apr-14 4:12 
GeneralRe: How not to do transaction processing PinmemberW Balboos11-Apr-14 1:14 
GeneralRe: How not to do transaction processing Pinmemberclawton9-Apr-14 12:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 29 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid