Click here to Skip to main content
15,886,788 members

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, embarrassing 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: Needless Polygon Rendering PinPopular
Tristan Rhodes6-May-09 23:03
Tristan Rhodes6-May-09 23:03 
QuestionWhich language is this Urgent help required Pin
Sanjaykalsi5-May-09 22:53
Sanjaykalsi5-May-09 22:53 
AnswerRe: Which language is this Urgent help required Pin
OriginalGriff5-May-09 23:05
mveOriginalGriff5-May-09 23:05 
AnswerRe: Which language is this Urgent help required Pin
Dino Mulahusic5-May-09 23:16
professionalDino Mulahusic5-May-09 23:16 
AnswerRe: Which language is this Urgent help required Pin
KarstenK6-May-09 3:45
mveKarstenK6-May-09 3:45 
GeneralMessage Removed Pin
6-May-09 8:21
MadProgrammer766-May-09 8:21 
GeneralRe: Which language is this Urgent help required Pin
KarstenK6-May-09 20:21
mveKarstenK6-May-09 20:21 
GeneralVisual Studio autogenerated code PinPopular
adgonz29-Apr-09 1:40
adgonz29-Apr-09 1:40 
This is the base code vs generates to check for special keys, on a Smart Device project:

private void Form1_KeyDown(object sender, KeyEventArgs e)
{
    if ((e.KeyCode == System.Windows.Forms.Keys.Up))
    {
        // Subir oscilador
        // Subir
    }
    if ((e.KeyCode == System.Windows.Forms.Keys.Down))
    {
        // Bajar oscilador
        // Bajar
    }
    if ((e.KeyCode == System.Windows.Forms.Keys.Left))
    {
        // Izquierda
    }
    if ((e.KeyCode == System.Windows.Forms.Keys.Right))
    {
        // Derecha
    }
    if ((e.KeyCode == System.Windows.Forms.Keys.Enter))
    {
        // Entrar
    }

}


A Pocket PC is full of power, so let's check for every possible key.
GeneralRe: Visual Studio autogenerated code Pin
Tony Pottier29-Apr-09 5:03
Tony Pottier29-Apr-09 5:03 
GeneralRe: Visual Studio autogenerated code Pin
Stephen Hewitt29-Apr-09 5:12
Stephen Hewitt29-Apr-09 5:12 
GeneralRe: Visual Studio autogenerated code Pin
Tony Pottier29-Apr-09 5:36
Tony Pottier29-Apr-09 5:36 
GeneralRe: Visual Studio autogenerated code Pin
Vasudevan Deepak Kumar7-May-09 21:26
Vasudevan Deepak Kumar7-May-09 21:26 
GeneralRe: Visual Studio autogenerated code Pin
adgonz29-Apr-09 5:18
adgonz29-Apr-09 5:18 
GeneralRe: Visual Studio autogenerated code Pin
KarstenK4-May-09 23:14
mveKarstenK4-May-09 23:14 
JokeRe: Visual Studio autogenerated code Pin
VentsyV6-May-09 6:30
VentsyV6-May-09 6:30 
GeneralRe: Visual Studio autogenerated code Pin
KarstenK6-May-09 20:23
mveKarstenK6-May-09 20:23 
JokeRe: Visual Studio autogenerated code Pin
Vasudevan Deepak Kumar7-May-09 21:27
Vasudevan Deepak Kumar7-May-09 21:27 
GeneralRe: Visual Studio autogenerated code Pin
KarstenK7-May-09 21:59
mveKarstenK7-May-09 21:59 
GeneralRe: Visual Studio autogenerated code Pin
sucram18-May-09 0:02
sucram18-May-09 0:02 
JokeRe: Visual Studio autogenerated code Pin
0x3c029-Apr-09 10:51
0x3c029-Apr-09 10:51 
GeneralRe: Visual Studio autogenerated code Pin
PIEBALDconsult30-Apr-09 14:18
mvePIEBALDconsult30-Apr-09 14:18 
GeneralRe: Visual Studio autogenerated code Pin
adgonz4-May-09 4:45
adgonz4-May-09 4:45 
GeneralRe: Visual Studio autogenerated code Pin
Megidolaon3-May-09 21:21
Megidolaon3-May-09 21:21 
GeneralRe: Visual Studio autogenerated code Pin
adgonz3-May-09 21:33
adgonz3-May-09 21:33 
GeneralRe: Visual Studio autogenerated code Pin
Megidolaon4-May-09 20:28
Megidolaon4-May-09 20:28 

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

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