Public Class Form1 Public Declare Function Inp32 Lib "inpout32.dll" (ByVal PortAddress As Short) As Short Public Declare Sub Out32 Lib "inpout32.dll" (ByVal PortAddress As Short, ByVal Value As Short) Public Value As Short Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged Value = CShort(TextBox1.Text) TextBox1.SelectionStart = 0 TextBox1.SelectionLength = TextBox1.Text.Length End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Call Out32(&H378S, Value) End Sub End Class
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question