Welcome to weblogs.com.pk Sign in | Join | Help

Adnan Siddiqi

Lets get technical


  • View Adnan Siddiqi's profile on LinkedIn
MessageBox Hell

What message are you getting from this messageBox?I have worked as a web developer for 4 years and i got a habbit of enabling print statments for displaying different variable values,I coudn`t getrid of this habbit in my desktop experience as well.In my current C# based application,i put several MessageBoxes in my code for checking purpose,therefore when i executed the code,i coudn`t figure out the position of this messagebox...Yeah Yeah i could search the string,but what if the word preference has been used as variable prefix as well?=),anyway after search of a minute or two,finally i found the culprit.

Lesson of the day

Never use Messagebox for displaying variable results and if ever do..always use Unique and meaningful Captions


Posted: Saturday, March 12, 2005 11:11 AM by kadnan
Filed under:


khurram said:

Try Tracing options in .NET; it will take some time upfront; but once you are comfortable; you will never look back :)
# March 14, 2005 1:32 PM
Anonymous comments are disabled