vb.net Remote desktop connection

HI ALL.
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:79.4.28.160 username:utente  password:qwerty
and if connection was successfull,i need to disconect and show message box ("connection GOOD")
thanks.
replica1987Asked:
Who is Participating?
 
BuggyCoderConnect With a Mentor Commented:
try to use ping class in system.net.NetworkInformation and see if you can ping the ip....

http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx
0
 
replica1987Author Commented:
i have just seen that projects,but i don't have Microsoft Terminal Services Control Type Library in vb.net
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
BuggyCoderCommented:
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:-

c:\Windows\System32\mstscax.dll

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

http://technet.microsoft.com/en-us/library/cc730673%28v=ws.10%29.aspx

here's a vb.net implementation:-
http://www.techusers.net/109/remote-desktop-application-vbnet
0
 
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??
0
 
replica1987Author Commented:
THANKS
0
 
replica1987Author Commented:
another problem.how i can disconnect if connection was sucessfull???
if password or username is wrong  i need to disconect to.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.