vb.net Remote desktop connection

I need to connect to remote desktop using VB.NET
3 textboxes (username,Password,Server IP) and 1 button.
How i can do it??
i have this
IP: username:utente  password:qwerty
and if connection was successfull,i need to disconect and show message box ("connection GOOD")
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

replica1987Author Commented:
i have just seen that projects,but i don't have Microsoft Terminal Services Control Type Library in vb.net
well you need that buddy, that's the formidable way to achieve what you want to.
BTW it is readily available and installed as COM component with Win7, normally found on the following path on 32 bit Win 7 machine:-


Try to see the link below for more details on how to set up terminal services for your use:-


here's a vb.net implementation:-
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

replica1987Author Commented:
ok.thanks.it's working.BUT if the remote computer is shutted down,i need to make messagebox("server is shutted down") how i can do i it??
try to use ping class in system.net.NetworkInformation and see if you can ping the ip....


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
replica1987Author Commented:
replica1987Author Commented:
another problem.how i can disconnect if connection was sucessfull???
if password or username is wrong  i need to disconect to.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.