I have a VB Program that is interfacing an SQL Server DataBase ...

The Problem is that when I try To connect and the application is waiting for the connection Object to be created ... I cannot do anything .. as if I am in an infinit loop, Until the connection is created ...
I want to aavaoid that .. and I have read somewhere that it can be done by calling some API functions ... but I could not find where anymore . ...