custom (20,040)


c# - Convert Decimal to Double?

c# - Convert Decimal to Double?

I want to use a track-bar to change a form's opacity. This is my code: decimal trans=trackBar1.Value/5000; this.Opacity=trans; When I build the application, it gives the following error: Cannot implic…


Register Windows program with the mailto protocol programmatically

How do I make it so mailto: links will be registered with my program? How would I then handle that event in my program? Most of the solutions I found from a quick Google search are how to do this manu…


c# - Unhandled Exception Handler in.NET 1.1

I'm maintaining a.NET 1.1 application, and one of the things I've been tasked with is making sure the user doesn't see any unfriendly error notifications. I've added handlers to Application.ThreadEx…


c++ - Ensuring that Exceptions are always сaught

Exceptions in C++ don't need to be caught(no compile time errors) by the calling function. So it's up to developer's judgment whether to catch them using try/catch(unlike in Java). Is there a way o…


Reducing duplicate error handling code in C#?

I've never been completely happy with the way exception handling works, there's a lot exceptions and try/catch brings to the table(stack unwinding, etc.), but it seems to break a lot of the OO model…


asp.net - How do I define custom web.config sections with potential child elements and attributes for the properties?

The web applications I develop often require co-dependant configuration settings and there are also settings that have to change as we move between each of our environments. All our settings are curre…



Creating a custom JButton in Java

Is there a way to create a JButton with your own button graphic and not just with an image inside the button? If not, is there another way to create a custom JButton in java?…


c# - Is it better to create Model classes or stick with generic database utility class?

We have a simple utility class in-house for our database calls(a light wrapper around ADO.NET), but I am thinking of creating classes for each database/object. Would it be smart thing to do so, or…


database - How to Test Web Code?

Does anyone have some good hints for writing test code for database-backend development where there is a heavy dependency on state? Specifically, I want to write tests for code that retrieve records…


Options for Google Maps over SSL

We recently discovered that the Google Maps API does not play nicely with SSL. Fair enough, but what are some options for overcoming this that others have used effectively? Will the Maps API work o…




example how android with not add tutorial swift programmatically from