[Help]Can't Show Form[solved]

Posts 1–5 of 5 · Page 1 of 1
[Help]Can't Show Form[solved]
Code:
    Dim ipaddress As New IPAddress(Convert.ToByte("localhost"))
    Dim lister As New Net.Sockets.TcpListener(IPAddress, port.Text)
    Dim mySocket As Socket = lister.AcceptSocket()

    Public Sub StartServer()
        Dim getstatus As Byte() = {&HFF, &HFF, &HFF, &HFF, &H0}
        Dim getinfo As Byte() = {&HFF, &HFF, &HFF, &HFF, &HFF, &H0}

        lister.Start()
        mySocket.Receive(getstatus, 0, SocketFlags.None)
        mySocket.Receive(getinfo, 0, SocketFlags.None)
        log.Text = "Recieved packet of data from " & mySocket.AddressFamily.ToString()
        While True

        End While
    End Sub
When I add that code(incomplete) it shows me an error:
An error occurred creating the form. See Exception.InnerException for details. The error is: Input string was not in a correct format.
What do to please? I can't start my form.
Where are you adding the code?

I would assume in a separate class, or is this a console application.
I would hope that you didn't place it in designer

The source by itself lands no issues in a class, module, console application , or form source. So the source isn't the issue, where are you putting it? and when you remove the source, the form shows?



yes it shows, and not in the designer damn it dude, im a starter not a noob
and I fixed it. Just need a bit more time to set the IP Address of the Lister...Blocked on it But will work on it XD
So, you solved it?
yes ^^ It's ova!!!
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us