|
|
Minisoft OCX VT - Visual Basic Sample
Link to the Sample
Using the OCX is as simple as registering it on a system and
adding the control your your form. The methods, properties and
events of the object will be come visible.
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles btnConnect.Click
MS320_CSharp1.Connect("oak", 23)
End Sub
Private Sub MS320_CSharp1_Disconnect(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MS320_CSharp1.Disconnect
MessageBox.Show(sender.ToString, "text")
End Sub
Private Sub Form1_Resize(ByVal sender As System.Object, ByVal e As _
System.EventArgs) Handles MyBase.Resize
MS320_CSharp1.Height = Height - 100
MS320_CSharp1.Width = Width - 100
End Sub
End Class
|