title: C#: How to stop a method with a timer
body: <p>I'm trying to set a timer for a database connection. Basically, if after X seconds the connection doesn't respond, I want the connection method to stop, and return a warning using Winforms in C# .NET.</p>