473,394 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Remote desktop application (vb.net)

jamesd0142
469 256MB
Hi jus looking for some ideas if possible:

I trying to create a basic remote desktop application (WHY?...to see if i can.).

I have an idea how i can control the mouse on the remote machine but it doesnt seem very efficient.

my idea:
i have a screenshot of the remote desktop refreshed every 100ms in a picture box.
now i think if i get the mouse possition within this picture box and store it in a txt file every 100ms or less, i can have a timer on the remote machine running every 100ms or less and change the cursor possition according the the values in this file.

Possible problem: 2 machines accessing the same txt file at the same time?any1 disagree?

Or any1 have any better ideas?

James
Apr 15 '08 #1
4 8055
Curtis Rutland
3,256 Expert 2GB
I have an idea. You could set up a TcpListener on your remote desktop application, that, when polled, will transmit the mouse coordinates. Then, set up a TcpClient on the application you will have running on the remote machine. Have the client start polling every 100ms or so, and the listener will return the mouse coordinates. No text file access or anything like that.

Here's a site to get you started with the TcpListener/TcpClient. It's in C# though, so if you need any help figuring out what's going on, just reply.
Apr 15 '08 #2
jamesd0142
469 256MB
Sounds very useful...

Im using vb express 2005 i dont seem to have tcp listener...

Is it called something else?
Apr 15 '08 #3
Curtis Rutland
3,256 Expert 2GB
Sounds very useful...

Im using vb express 2005 i dont seem to have tcp listener...

Is it called something else?

Ok, notice that on the C# page, there are these statements at the top:
Expand|Select|Wrap|Line Numbers
  1. using System.Net.Sockets;
  2. using System.IO;
  3.  
This is C#'s equivalent to the Imports statement. So you will need:
Expand|Select|Wrap|Line Numbers
  1. Imports System.Net.Sockets
  2. Imports System.IO
  3.  
Then you can use the TcpListener and TcpClient.
Most objects are the same from VB.NET to C#. It's mostly the syntax that differs.
Apr 15 '08 #4
jg007
283 100+
I believe that VNC source is open so you could look through that for ideas althought I have never lookinto it so it might go quite complicated and use it's own mouse , keyboard and screen drivers as remote desktop does.

allways nice to see people trying just for fun as that is certainly how I have learnt most of my code :)

plenty of projects listed here - http://sourceforge.net/search/?type_...soft&words=vnc
Apr 15 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Etienne Charland | last post by:
Hi, there is an application running on a remote desktop (under Citrix ICA, but the same problem applies for RDC or PC Anywhere). Now, I want to send keys to the remote application from a local app....
3
by: Elp | last post by:
Hi, I have developped a Windows applcation (in C#) that allows, among other things, users to view and control the desktop of a remote Windows XP Pro machine. I have actually simply embedded the...
0
by: Chris | last post by:
I have a VB.NET application that I would like to turn on/off the ability for it to be used over a remote session(terminal services/remote desktop). I have been told this is possible. How? ...
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
0
by: Ehsan1986 | last post by:
Hi I want to make Remote Desktop Application using c#.net but i am get confused while starting it. can anyone tell me , Is c#.net have support for this type of projects and can i make this...
2
jamesd0142
by: jamesd0142 | last post by:
Hi jus looking for some ideas if possible: I trying to create a basic remote desktop application (WHY?...to see if i can.). I have an idea how i can control the mouse on the remote machine but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.