Public Class Form2
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
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
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents msg_net As System.Windows.Forms.TextBox
Friend WithEvents ip As System.Windows.Forms.TextBox
Friend WithEvents btn_env As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.btn_env = New System.Windows.Forms.Button
Me.msg_net = New System.Windows.Forms.TextBox
Me.ip = New System.Windows.Forms.TextBox
Me.SuspendLayout()
'
'Label2
'
Me.Label2.BackColor = System.Drawing.Color.Transparent
Me.Label2.ForeColor = System.Drawing.Color.Black
Me.Label2.Location = New System.Drawing.Point(8, 32)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(64, 16)
Me.Label2.TabIndex = 35
Me.Label2.Text = "Mensagem:"
Me.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'Label1
'
Me.Label1.BackColor = System.Drawing.Color.Transparent
Me.Label1.ForeColor = System.Drawing.Color.Black
Me.Label1.Location = New System.Drawing.Point(8, 8)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(64, 16)
Me.Label1.TabIndex = 34
Me.Label1.Text = "PC / IP:"
Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'btn_env
'
Me.btn_env.BackColor = System.Drawing.Color.White
Me.btn_env.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btn_env.Location = New System.Drawing.Point(224, 8)
Me.btn_env.Name = "btn_env"
Me.btn_env.Size = New System.Drawing.Size(51, 88)
Me.btn_env.TabIndex = 33
Me.btn_env.Text = "Enviar"
'
'msg_net
'
Me.msg_net.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.msg_net.Location = New System.Drawing.Point(80, 32)
Me.msg_net.Multiline = True
Me.msg_net.Name = "msg_net"
Me.msg_net.Size = New System.Drawing.Size(139, 64)
Me.msg_net.TabIndex = 32
Me.msg_net.Text = ""
'
'ip
'
Me.ip.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.ip.Location = New System.Drawing.Point(80, 8)
Me.ip.Name = "ip"
Me.ip.Size = New System.Drawing.Size(139, 20)
Me.ip.TabIndex = 31
Me.ip.Text = ""
'
'Form2
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(288, 110)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.btn_env)
Me.Controls.Add(Me.msg_net)
Me.Controls.Add(Me.ip)
Me.Name = "Form2"
Me.Text = "Form2"
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub btn_env_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_env.Click
Dim ip, message
ip = Me.ip.Text
message = Me.msg_net.Text
Shell("net send " & ip & message)
End Sub
End Class