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: Fsking ASP.NET! PinmemberSentenryu7-Aug-13 10:08 
GeneralWhen things to more than you think Pinmemberimagiro6-Aug-13 8:17 
GeneralRe: When things to more than you think PinmemberSuper Lloyd6-Aug-13 22:13 
GeneralUndoubtedly this is my own ignorance in glorious action but... PinmemberAndy Bantly5-Aug-13 8:52 
I am new to C# and WPF. I have a legacy bag of C++ code and dialogs. C# has this neat facility called "HwndHost" that lets you put legacy, message pump driven, windows inside a border control. My dialog is successfully hosted and running. The XAML also has a button with an accelerator. In my native dialog if I have an edit box and I try to type the letter of the accelerator it causes the accelerator to fire and the letter to be stolen from the edit box that had the focus. I can't begin to know what the heck is wrong and I suspect it has to do with weird and not so wonderful way that events are handled.
 
My solution was to remove the accelerator or tell the user to paste in the letter 'o' when they needed it.
GeneralRe: Undoubtedly this is my own ignorance in glorious action but... PinmemberMatt U.5-Aug-13 9:10 
GeneralRe: Undoubtedly this is my own ignorance in glorious action but... PinmemberAndy Bantly5-Aug-13 10:22 
GeneralRe: Undoubtedly this is my own ignorance in glorious action but... PinmemberMatt U.5-Aug-13 11:02 
GeneralRe: Undoubtedly this is my own ignorance in glorious action but... PinmemberAndy Bantly6-Aug-13 11:54 
GeneralSo you think you know what double.Parse does? Pinmemberharold aptroot3-Aug-13 0:27 
GeneralRe: So you think you know what double.Parse does? PinprofessionalPIEBALDconsult3-Aug-13 6:31 

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
Web01 | 2.8.150327.1 | Last Updated 29 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid