Results 1 to 2 of 2

Thread: [RESOLVED] Need help visual basic program?

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2007
    Posts
    28

    Resolved [RESOLVED] Need help visual basic program?

    who can program to get message from the client side?
    This is server side but cannot display message from client side.who know use which method to solve it?
    vb Code:
    1. Imports System.Net.Sockets
    2. Public Class Form1
    3.     Const portNo As Integer = 500
    4.     Dim localAdd As System.Net.IPAddress = _
    5.        System.Net.IPAddress.Parse("127.0.0.1")
    6.     Dim listener As New TcpListener(localAdd, portNo)
    7.     Private Sub TmrCheck_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TmrCheck.Tick
    8.         TmrCheck.Enabled = False
    9.         Dim user As ChatClient.ChatClient
    10.         user = New ChatClient.ChatClient(listener.AcceptTcpClient)
    11.  
    12.         MessageBox.Show("come to here")
    13.         TmrCheck.Enabled = True
    14.  
    15.     End Sub
    16.  
    17.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    18.  
    19.     End Sub
    20.  
    21.     Private Sub ButStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButStart.Click
    22.         listener.Start()
    23.         TmrCheck.Enabled = True
    24.  
    25.     End Sub
    Last edited by Hack; Apr 24th, 2007 at 07:28 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width