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. connect to server

connect to server

Scheduled Pinned Locked Moved Visual Basic
helpsysadminquestionlounge
1 Posts 1 Posters 0 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.
  • G Offline
    G Offline
    GaryKoh
    wrote on last edited by
    #1

    hello please help me i have the code below that i got from a few books Private Sub Connect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Connect.Click If ipB.Text <> "" And portB.Text <> "" Then chatB.AppendText("Requesting Connection" & vbCrLf) On Error GoTo ErrorM myclient = New TcpClient(ipB.Text, portB.Text) myclient.GetStream.BeginRead(mydata, 0, 1024, AddressOf DoRead, Nothing) Status.Panels.Text = "Requesting Connection..." chatB.AppendText("Connected..." & vbCrLf) chatB.AppendText("----------------" & vbCrLf) Status1.Panels(0).Text = "Connected to " & ipB.Text & ":" & portB.Text Timer1.Enabled = True a = InputB("Enter Nickname:", "Chat 2003") Send("nick:" & a) portB.Enabled = False SendB.Enabled = True Connect.Visible = False DC.Visible = True ipB.Enabled = False End If ErrorM: If SendB.Enabled = False Then chatB.AppendText("Please try again") End If End Sub somehow the code wont work. i keep getting "Please try again" im trying detect my college server with the coding is it possible?? or do i need something else?? can u tell me what else i need thank you in advance Gary

    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