Click here to Skip to main content
16,004,882 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi Good morning,
i am trying to stop execution after i get popup.

i have on class1.cs

in that i have
public void checkcondition()
{
if(checkcondition)
{
return true;
}
if(condition)
{
return false;
}

}

and i have window1.cs.[design]

there i wrote messagebox.show("Error");

after checking first condition i want to jump for pop up in this class. and want to stop further execution.

can somebody help me.
Posted
Comments
ZurdoDev 23-Feb-14 17:27pm    
This is not clear.
bunty swapnil 24-Feb-14 1:21am    
i have two classes in one class i am writing popup message according to conditions i wrote in first class but it is coming after execution of method then will switch into other class. but i dont want to go ahead if first condition is unchecked. and want to show pop up i wrote in 2nd class.
ZurdoDev 24-Feb-14 8:06am    
OK. So where are you stuck?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900