GetBoundsSelectBox example
Example for GetBoundsSelectBox method
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
cAvax1.StartAvax()
End Sub
Private Sub Form1_FormClosed(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
cAvax1.EndAvax()
End Sub
Private Sub CAvax1_OnMouseMove(ByVal Sender As Object, ByVal e As Avax.cAvax.MouseMoveEventArgs) Handles CAvax1.OnMouseMove
Dim xMinSel As Single
Dim yMinSel As Single
Dim xMaxSel As Single
Dim yMaxSel As Single
Dim Answer As Boolean
Dim txt As String
Answer = CAvax1.GetBoundsSelectBox(xMinSel, yMinSel, xMaxSel, yMaxSel)
txt = "Xmin =" & Str(xMinSel) & vbCr & vbLf
txt = txt & "Xmax =" & Str(xMaxSel) & vbCr & vbLf
txt = txt & "Ymin =" & Str(yMinSel) & vbCr & vbLf
txt = txt & "Ymax =" & Str(yMaxSel) & vbCr & vbLf
Text1.Text = txt
End Sub