Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

vb.net Remote desktop connection

Posted on 2012-04-08
7
1,779 Views
Last Modified: 2012-04-08
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.
0
Comment
Question by:replica1987
  • 4
  • 3
7 Comments
 
LVL 20

Expert Comment

by:BuggyCoder
ID: 37820980
0
 

Author Comment

by:replica1987
ID: 37820987
i have just seen that projects,but i don't have Microsoft Terminal Services Control Type Library in vb.net
0
 
LVL 20

Expert Comment

by:BuggyCoder
ID: 37820995
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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:replica1987
ID: 37821034
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
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 total points
ID: 37821037
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
 

Author Closing Comment

by:replica1987
ID: 37821132
THANKS
0
 

Author Comment

by:replica1987
ID: 37821274
another problem.how i can disconnect if connection was sucessfull???
if password or username is wrong  i need to disconect to.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question