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
}
tayspen
<Insert title here>
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99