Hi M Tayyab Mughal,
First, I want to inform that this forum is to discuss SQL Server questions. With your question, it is more about application logic, you can post the question to Windows Forms forum. As Krishnakumar suggested, we need to use “else if” rather than “if” except the first “if” command. Additionally, to this kind of issue, the best method is to debug the application and check why C# codes go into “else” block.
Windows Forms forum
http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
Allen Li
TechNet Community Support
No comments:
Post a Comment