Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27333

How to put a VB.net application onto my website?

$
0
0
Hello. I have a VB.Net application that I would like to put onto my website. I have a webhosting account with Godaddy, and I am using WordPress. Is this possible?

Code:

Public Class Form1

 

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)

    End Sub

 

 
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://192.168.1.79:8080/led/23/off")
        Dim response As System.Net.HttpWebResponse = request.GetResponse()

        Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())

        Dim sourcecode As String = sr.ReadToEnd()

        TextBox1.Text = sourcecode
        TextBox1.BackColor = Color.White
    End Sub

 
    Private Sub onbutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles onbutton.Click
        Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://192.168.1.79:8080/led/23/on")
        Dim response As System.Net.HttpWebResponse = request.GetResponse()

        Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())

        Dim sourcecode As String = sr.ReadToEnd()

        TextBox1.Text = sourcecode
        TextBox1.BackColor = Color.Orange

    End Sub

 
End Class

Thanks in advance.
Attached Images
   

Viewing all articles
Browse latest Browse all 27333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>