•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 391,548 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,533 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser:
Views: 2298 | Replies: 2
![]() |
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...
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
} Firefox
Ewido
Tune up windows
Get detailed system information
My Fixes
Member - Alliance of Security Analysis Professionals - Since 2006
Ewido
Tune up windows
Get detailed system information
My Fixes
Member - Alliance of Security Analysis Professionals - Since 2006
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C# Marketplace
•
•
•
•
access activation algos api blogger blogging blogs code combo dani daniweb data debugging development dreamweaver dropdownlist fortitude gdata google gpl hope html innovation key linux microsoft module net news openbsd product programming reuse rss serial source struggle tags trial-and-error victory vista web wysiwyg xml
- Error 'not all code paths return a value' (C#)
- Triangular number calculator (C)
- Calculator code, pls help (Visual Basic 4 / 5 / 6)
- I got a Link error 1181 with fresh code from source safe. (C++)
- Parse error at last line of page's code (PHP)
- Wierd error messages with calculator program (C++)
Other Threads in the C# Forum
- Previous Thread: Deleting from database
- Next Thread: image manipulation



Linear Mode