Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I've been trying for ages to make a remote desktop program and I'm sick of getting nowhere with it.

I found something called Multi RDP Client .NET, but this is in C#, and it's full of bugs. I looked through its files and it had one called mstscax.dll.

So I looked this up and searched for vb.net using mstscax.dll but there are no tutorials on how to use mstscax.dll to do remote desktop. A reminder in case you haven't read my previous posts:

The program needs to be able to receive the screenshots from many computers at the same time. (Googling RM Tutor 5 may help you understand as this is what gave me inspiration). It also needs to send simple messages which I can convert into other commands. Does anyone know how I can do remote desktopping with many computers (IN VB.NET!!!!)?

Please help me and put my suffering to an end! It's being going on for 2 years!

-Ricky F
Posted

1 solution

If you really spent (should I say "wasted"?) whole two years for such things (did I get you correctly? or may be you also did something else, something useful? :-)), I would think about some career change. :-)

On CodeProject, you can find at least two decent projects, apparently built "by definition" (based on available description of , without any 3rd-party "DLLs"); and I am almost sure it took much less time:
Palantir - Remote Desktop Manager[^],
Remote Desktop using C#.NET[^].

By the way, first of the projects, Palantir, once helped me to solve the problem with the presentation using the presentation computer with non-matching monitor aspect ratio in case when Microsoft's product failed to do the job. Please see my post in comments:
Palantir - Remote Desktop Manager[^].

Look how creative people can work, instead of getting "sick of getting nowhere with it" :-)

Now, if your major feature is just taking some screenshots from the number of computer, maybe you need to create something simple and specialized, not following the RDP protocol. Here is how: instead of remote access services, you could create a specialized network service. The adequate form of such service would be the Windows Service. It can be installed on each of the remote computers and can get access to local systems, in particular, takes screenshots on request. Your central computer collecting screenshot should act as a client, connect to some or all of those remote computers, send them requests and receive responses. For network transport, you can use anything from raw sockets (better using TcpListener/TcpClient) to "classical" remoting to WCF. Please see my overview of these approaches in my past solutions:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

And you can learn about development of Windows Services:
http://en.wikipedia.org/wiki/Windows_service[^],
http://msdn.microsoft.com/en-us/library/y817hyb6%28v=vs.110%29.aspx[^].

That's it. Such specialized approach will be the order of magnitude easier that that of RDP (however, with RDP you would not need to develop a server part :-)). I would estimate required time to achieve basic functionality (it depends on the detail of your requirements though) in few days.

Good luck,
—SA
 
Share this answer
 
v4
Comments
[no name] 14-Feb-14 13:07pm    
I am using tcpclients at the moment. The problem I'm having is this:
I click a button, which sends a command to the remote computer and they begin to send screenshots.
The picturebox on my form should show the screenshots, but it doesn't because there is the button on the form.
What I really want to do is to have one screen where I can click the button and view the images in the picturebox. From researching, I've come across ideas about repainting taking too long, as well as many other confusing reasons. Here's a link where my code is. Please have a look and see what you think I can do: http://www.datafilehost.com/d/2b00202d
Sergey Alexandrovich Kryukov 14-Feb-14 14:04pm    
Why using PictureBox at all? This is actually a totally redundant control, designed only to simplify showing of static images. Just forget it, it won't help you at all.
—SA
[no name] 14-Feb-14 15:53pm    
Finally! I found the solution! I came across the RDPViewer control (IRDPSRAPIViewer) and it works perfectly! Just one thing: is it possible to have 10 of these and 10 other computers connect to one each?
Sergey Alexandrovich Kryukov 14-Feb-14 17:38pm    
What do you mean 10 others? What's the difference? Have as many as you want... (Congratulations, by the way!.. :-)
—SA
[no name] 16-Feb-14 6:28am    
OK. And thanks!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900