Question:

Hey Take a look at this Visual Basic 2008 Code, Please...?

by  |  earlier

0 LIKES UnLike

'Shows the File Control Window

Files.Show()

'---------------------------------------...

Browser.Show()

'Timer, its not enabled

'---------------------------------------...

'Defining a local port...

sock.LocalPort = "2"

'---------------------------------------...

'Turn the sock.LocalIP into a string, and Dim it LocalIP

Dim LocalIP As String = sock.LocalIP

'Turn the sock.LocalPort into an Ineger, and Dim it LocalPort

Dim LocalPort As String = sock.LocalPort

'---------------------------------------...

'---------------------------------------...

'Define the LocalIP, Google is 74.125.39.104

'Googles IP : 74.125.39.104

LocalIP = "74.125.39.104"

'---------------------------------------...

'---------------------------------------...

'Display the LocalIP in the IP TextBox

IP.Text = LocalIP

'Display the LocalPort in the LocalPort TextBox

port.Text = LocalPort

'---------------------------------------...

'---------------------------------------...

Dim IPText As String = IP.Text

Dim PortText As String = port.Text

'---------------------------------------...

'Tell Your Web Browser to Navigate to the String, LocalIP Given

'to it

Browser.WBrowser.Navigate(LocalIP)

'---------------------------------------...

'Display in the Status TextBox, What IP Your Connected to

If IPText = LocalIP Then

ipstatus.Text = "Connected to Local IP"

IP2.Text = LocalIP

Else

ipstatus.Text = "Not Connected to Local IP"

IP2.Text = LocalIP

End If

'---------------------------------------...

'Display in the Status TextBox, What Local Port Your Connected to

If PortText = LocalPort Then

portstatus.Text = "Connected to Local Port"

Port2.Text = LocalPort

Else

portstatus.Text = "Not Connected to Local Port"

Port2.Text = LocalPort

End If

sock.Connect()

'---------------------------------------...

End Sub

 Tags:

   Report

1 ANSWERS


  1. I am not sure about the code, but I can give you the name and location of an application like the one you are referring to : TightVNC

    http://www.tightvnc.com/

    It will allow her to remotely control your computer, or vice versa - and it's free.

    : )

    After looking over the code, I would say it is impossible to know if it would work because there are no object instantiations visible - it is assumed that the "Browser", "Files", and other objects are created and instantiated properly. So I think it would be pretty hard to tell from the code liste. It is far too simplistic, everything is 'string's, and I am sure that it wouldn't work like that.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.