当前位置:编程学习 > C#/ASP.NET >>

The UDPChat-Client Source(VB.NET)

答案:'I use Winsock Control SP5(VB6)

Public Class frmMain
    Inherits System.Windows.Forms.Form

#Region " Windows 窗体设计器生成的代码 "

    Public Sub New()
        MyBase.New()

        '该调用是 Windows 窗体设计器所必需的。
        InitializeComponent()

        '在 InitializeComponent() 调用之后添加任何初始化

    End Sub

    '窗体重写处置以清理组件列表。
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Windows 窗体设计器所必需的
    Private components As System.ComponentModel.IContainer

    '注意:以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器修改此过程。
    '不要使用代码编辑器修改它。
    Friend WithEvents pelSaid As System.Windows.Forms.Panel
    Friend WithEvents btnSend As System.Windows.Forms.Button
    Friend WithEvents txtSaid As System.Windows.Forms.TextBox
    Friend WithEvents txtChatLog As System.Windows.Forms.TextBox
    Friend WithEvents sckClient As AxMSWinsockLib.AxWinsock
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmMain))
        Me.pelSaid = New System.Windows.Forms.Panel()
        Me.btnSend = New System.Windows.Forms.Button()
        Me.txtSaid = New System.Windows.Forms.TextBox()
        Me.txtChatLog = New System.Windows.Forms.TextBox()
        Me.sckClient = New AxMSWinsockLib.AxWinsock()
        Me.pelSaid.SuspendLayout()
        CType(Me.sckClient, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'pelSaid
        '
        Me.pelSaid.Controls.AddRange(New System.Windows.Forms.Control() {Me.btnSend, Me.txtSaid})
        Me.pelSaid.Dock = System.Windows.Forms.DockStyle.Bottom
        Me.pelSaid.Location = New System.Drawing.Point(0, 332)
        Me.pelSaid.Name = "pelSaid"
        Me.pelSaid.Size = New System.Drawing.Size(392, 34)
        Me.pelSaid.TabIndex = 2
        '
        'btnSend
        '
        Me.btnSend.Location = New System.Drawing.Point(296, 5)
        Me.btnSend.Name = "btnSend"
        Me.btnSend.Size = New System.Drawing.Size(80, 24)
        Me.btnSend.TabIndex = 0
        Me.btnSend.Text = "Send"
        '
        'txtSaid
        '
        Me.txtSaid.Location = New System.Drawing.Point(8, 6)
        Me.txtSaid.Name = "txtSaid"
        Me.txtSaid.Size = New System.Drawing.Size(280, 21)
        Me.txtSaid.TabIndex = 0
        Me.txtSaid.Text = ""
        '
        'txtChatLog
        '
        Me.txtChatLog.Dock = System.Windows.Forms.DockStyle.Top
        Me.txtChatLog.Multiline = True
        Me.txtChatLog.Name = "txtChatLog"
        Me.txtChatLog.ReadOnly = True
        Me.txtChatLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
        Me.txtChatLog.Size = New System.Drawing.Size(392, 328)
        Me.txtChatLog.TabIndex = 3
        Me.txtChatLog.TabStop = False
        Me.txtChatLog.Text = ""
        '
        'sckClient
        '
        Me.sckClient.Enabled = True
        Me.sckClient.Location = New System.Drawing.Point(16, 8)
        Me.sckClient.Name = "sckClient"
        Me.sckClient.OcxState = CType(resources.GetObject("sckClient.OcxState"), System.Windows.Forms.AxHost.State)
        Me.sckClient.Size = New System.Drawing.Size(28, 28)
        Me.sckClient.TabIndex = 4
        '
        'frmMain
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
        Me.ClientSize = New System.Drawing.Size(392, 366)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.sckClient, Me.txtChatLog, Me.pelSaid})
        Me.MaximizeBox = False
        Me.MaximumSize = New System.Drawing.Size(400, 400)
        Me.MinimumSize = New System.Drawing.Size(400, 400)
        Me.Name = "frmMain"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = &

上一个:The UDPChat-Server Source(VB.NET)
下一个:一个用C#实现的简单http server(转自中华技术网 www.driverdevelop.com),给楼下的朋友

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,