Question How to report back a successful login using windows form


New member
Jul 2, 2019
Programming Experience
Hi All

I am using visual studio / C# to create some windows forms for automating some of my tasks. One of the tasks is to login into vCenter SDk by clicking a "connect" button .

How can i get a message to pop up when the connection to vCenter SDK is successful and to show a timeout box if the connection doesnt happen successfully within a specified piece of time

Is this possible ?
Unless this SDK provides the ability to specify a timeout period, your best bet would be to create a Task and execute it asynchronously. You can specify a maximum period to allow the Task to run. You can read up a bit on the Task Parallel Library and see what you can find out.
Top Bottom