Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Remote Desktop Application

Remote Desktop Application

Scheduled Pinned Locked Moved Visual Basic
comhelp
9 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Newbie51
    wrote on last edited by
    #1

    Hi,

    I have searched all over the internet trying to find a remote desktop app. I found one that uses an activeX control, but the screen in all sideways and wierd. any help would be greatly appreciated

    D B 2 Replies Last reply
    0
    • N Newbie51

      Hi,

      I have searched all over the internet trying to find a remote desktop app. I found one that uses an activeX control, but the screen in all sideways and wierd. any help would be greatly appreciated

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Help with what? And what does this have to do with VB.NET??

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      N 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Help with what? And what does this have to do with VB.NET??

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak

        N Offline
        N Offline
        Newbie51
        wrote on last edited by
        #3

        I would like to make a remote desktop connection app in vb.net. Sorry for not being clear.

        1 Reply Last reply
        0
        • N Newbie51

          Hi,

          I have searched all over the internet trying to find a remote desktop app. I found one that uses an activeX control, but the screen in all sideways and wierd. any help would be greatly appreciated

          B Offline
          B Offline
          Benaiah Mischenko
          wrote on last edited by
          #4

          This (Remote desktop application in VB.net) should get you started. It looks relatively easy - I assume you're using WinForms. You should really provide more detailed information in the future. Hope this helps!

          N 1 Reply Last reply
          0
          • B Benaiah Mischenko

            This (Remote desktop application in VB.net) should get you started. It looks relatively easy - I assume you're using WinForms. You should really provide more detailed information in the future. Hope this helps!

            N Offline
            N Offline
            Newbie51
            wrote on last edited by
            #5

            Thanks. What would the server, domain, username, and password be? Thanks again.

            B 1 Reply Last reply
            0
            • N Newbie51

              Thanks. What would the server, domain, username, and password be? Thanks again.

              B Offline
              B Offline
              Benaiah Mischenko
              wrote on last edited by
              #6

              "Server" would be the address of the computer you want to connect to. "Domain" would be the domain of the user (this would be the computer you are connecting to, if you want to use a local user). "Username" would be the username you wish to connect as. "Password" would be the password of the user that you wish to connect as. Hope this helps. Without knowing the exact details of your situation, I can't give you exact values, but this should be enough to get you going. If you have ever used Windows' built-in RDC client, these should be familiar.

              N 1 Reply Last reply
              0
              • B Benaiah Mischenko

                "Server" would be the address of the computer you want to connect to. "Domain" would be the domain of the user (this would be the computer you are connecting to, if you want to use a local user). "Username" would be the username you wish to connect as. "Password" would be the password of the user that you wish to connect as. Hope this helps. Without knowing the exact details of your situation, I can't give you exact values, but this should be enough to get you going. If you have ever used Windows' built-in RDC client, these should be familiar.

                N Offline
                N Offline
                Newbie51
                wrote on last edited by
                #7

                Thanks Very Much. I will try it out as soon as I get time.

                B 1 Reply Last reply
                0
                • N Newbie51

                  Thanks Very Much. I will try it out as soon as I get time.

                  B Offline
                  B Offline
                  Benaiah Mischenko
                  wrote on last edited by
                  #8

                  Could you mark my answer as accepted so I can get credit for it? Thanks!

                  N 1 Reply Last reply
                  0
                  • B Benaiah Mischenko

                    Could you mark my answer as accepted so I can get credit for it? Thanks!

                    N Offline
                    N Offline
                    Newbie51
                    wrote on last edited by
                    #9

                    I just tried it out and put the name of the computer for server, WORKGROUP for the domain, since we are on a workgroup, me for username, and me for password. When I ran it, it didn't do anything. any suggestions greatly appreciated. also, how do I "accept" an answer? im kind of new here. Thanks I was able to get a remote desktop app that you can control the users computer, but the screen is all sideways and messed up, is there a way to fix that? It is using the AXrdpViewer. also, is there a way to make it to where I can disable being able to control the computer? I have tried putting a form over it, but that didn't work Here is the code for the client:

                    Imports RDPCOMAPILib
                    Imports System.Net.Sockets
                    Public Class Form1
                    Dim x As New RDPSession
                    Dim clientSocket As New System.Net.Sockets.TcpClient()
                    Dim serverStream As NetworkStream
                    Dim readData As String
                    Dim infiniteCounter As Integer
                    Dim a As String
                    Dim b As String
                    Dim drag As Boolean
                    Dim mousex As Integer
                    Dim mousey As Integer
                    Private Sub Incoming(ByVal Guest As Object)
                    Dim MyGuest As IRDPSRAPIAttendee = Guest
                    MyGuest.ControlLevel = CTRL_LEVEL.CTRL_LEVEL_INTERACTIVE
                    End Sub
                    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
                    Dim strHostName As String

                        strHostName = System.Net.Dns.GetHostName()
                        a = System.Net.Dns.GetHostByName(strHostName).AddressList(0).ToString()
                        b = 'Username
                    
                        readData = "Conected to Chat Server ..."
                        clientSocket.Connect("IP ADDRESS", 8888)
                        'Label1.Text = "Client Socket Program - Server Connected ..."
                        serverStream = clientSocket.GetStream()
                    
                        Dim outStream As Byte() = \_
                        System.Text.Encoding.ASCII.GetBytes(b + "$")
                        serverStream.Write(outStream, 0, outStream.Length)
                        serverStream.Flush()
                        AddHandler x.OnAttendeeConnected, AddressOf Incoming
                        x.Open()
                        Dim Invitation As IRDPSRAPIInvitation = x.Invitations.CreateInvitation("Trial", "MyGroup", "", 10)
                        outStream = System.Text.Encoding.ASCII.GetBytes("V" + "$")
                        serverStream.Write(outStream, 0, outStream.Length)
                        outStream = System.Text.Encoding.ASCII.GetBytes("V" + Invitation.ConnectionString + "$")
                        serverStream.Write(outStream, 0, outStream.Length)
                    End Sub
                    

                    End Class

                    Here's is the code for the Viewer:

                    Imports System.Net.Sockets

                    Public Class Form1
                    Dim c

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups