Click here to Skip to main content
15,885,216 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: When to check for null ? Pin
SortaCore12-Jul-12 2:37
SortaCore12-Jul-12 2:37 
GeneralRe: When to check for null ? Pin
KP Lee11-Jul-12 19:21
KP Lee11-Jul-12 19:21 
GeneralRe: When to check for null ? Pin
Sasha Laurel12-Jul-12 5:00
Sasha Laurel12-Jul-12 5:00 
GeneralRe: When to check for null ? Pin
KP Lee12-Jul-12 15:21
KP Lee12-Jul-12 15:21 
GeneralRe: When to check for null ? Pin
Sasha Laurel12-Jul-12 16:03
Sasha Laurel12-Jul-12 16:03 
GeneralRe: When to check for null ? Pin
Sasha Laurel12-Jul-12 16:08
Sasha Laurel12-Jul-12 16:08 
GeneralRe: When to check for null ? Pin
KP Lee12-Jul-12 16:46
KP Lee12-Jul-12 16:46 
GeneralRateOfInterest... Pin
Sandeep Mewara10-Jul-12 5:04
mveSandeep Mewara10-Jul-12 5:04 
Some one wanted to have this: "I have 12 text-boxes for entering Rate-Of-Intrest for different months. If user enters rateOfIntrest for January and August then rateOfInterest for February to July should be same as of January and rest should be as for August. If data for only January is entered then all the months will be same as that of January"

Suggestion was:
in this case when first text box value can given by the user then bellow method can help u.
C#
TextBox1.Text ="10";
if (TextBox2.Text == "")
{
    TextBox2.Text = TextBox1.Text;
}
if (TextBox3.Text == "")
{
    TextBox3.Text = TextBox2.Text;
}
if (TextBox4.Text == "")
{
    TextBox4.Text = TextBox3.Text;
}
if (TextBox5.Text == "")
{
    TextBox5.Text = TextBox4.Text;
}
if (TextBox6.Text == "")
{
    TextBox6.Text = TextBox5.Text;
}
if (TextBox7.Text == "")
{
    TextBox7.Text = TextBox6.Text;
}
if (TextBox8.Text == "")
{
    TextBox8.Text = TextBox7.Text;
}
if (TextBox9.Text == "")
{
    TextBox9.Text = TextBox8.Text;
}
if (TextBox10.Text == "")
{
    TextBox10.Text = TextBox9.Text;
}
if (TextBox11.Text == "")
{
    TextBox11.Text = TextBox10.Text;
}
if (TextBox12.Text == "")
{
    TextBox12.Text = TextBox11.Text;
}

if TextBox3 text can change then it now consider TextBox3 values..


Oh! Come on... D'Oh! | :doh:

GeneralRe: RateOfInterest... Pin
PIEBALDconsult10-Jul-12 11:05
mvePIEBALDconsult10-Jul-12 11:05 
AnswerRe: RateOfInterest... Pin
Sandeep Mewara10-Jul-12 19:46
mveSandeep Mewara10-Jul-12 19:46 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 3:42
mvePIEBALDconsult11-Jul-12 3:42 
QuestionRe: RateOfInterest... Pin
Sandeep Mewara10-Jul-12 19:49
mveSandeep Mewara10-Jul-12 19:49 
AnswerRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 3:47
mvePIEBALDconsult11-Jul-12 3:47 
GeneralRe: RateOfInterest... Pin
BobJanova11-Jul-12 0:44
BobJanova11-Jul-12 0:44 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 3:50
mvePIEBALDconsult11-Jul-12 3:50 
GeneralRe: RateOfInterest... Pin
BobJanova11-Jul-12 4:38
BobJanova11-Jul-12 4:38 
GeneralRe: RateOfInterest... Pin
Sandeep Mewara11-Jul-12 7:14
mveSandeep Mewara11-Jul-12 7:14 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 8:37
mvePIEBALDconsult11-Jul-12 8:37 
JokeRe: RateOfInterest... PinPopular
S Houghtelin10-Jul-12 11:21
professionalS Houghtelin10-Jul-12 11:21 
GeneralRe: RateOfInterest... Pin
greldak10-Jul-12 22:07
greldak10-Jul-12 22:07 
GeneralDating PinPopular
V.10-Jul-12 3:56
professionalV.10-Jul-12 3:56 
GeneralRe: Dating Pin
Brisingr Aerowing10-Jul-12 13:57
professionalBrisingr Aerowing10-Jul-12 13:57 
GeneralRe: Dating Pin
Peter_in_278010-Jul-12 14:13
professionalPeter_in_278010-Jul-12 14:13 
GeneralRe: Dating Pin
V.11-Jul-12 9:14
professionalV.11-Jul-12 9:14 
GeneralRe: Dating Pin
jschell11-Jul-12 8:09
jschell11-Jul-12 8:09 

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.