Well, since you can't dive by zero, thats why its thorowing the error... You could just use try catch blocks. Or if you post your code, we could help you with better error handling.
If you use try catch block...
try{
//The calculator main code...Where the error is getting thrown
}
catch
{
MessageBox.Show("You divided by zero...");
//Show the error
}
Reputation Points: 84
Solved Threads: 99
<Insert title here>
Offline 1,542 posts
since Jul 2005