Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - gerhardj

Pages: [1]
1
Open Discussion / Re: LineShape1
« on: August 01, 2013, 10:38:10 PM »
Thanks Archie
The timer worked. I will play with the other one.

2
Open Discussion / LineShape1
« on: August 01, 2013, 06:10:30 PM »
Hi
I am new to Visual Studio. I have a LineShape1 that I want to move across a IP Camera input.
I got the line to move on click event, X1 and X2 value from PLC, Y1 and Y2 Set values. How can I make it update continuously

   Private Sub LineShape1_Click(sender As Object, e As EventArgs) Handles LineShape1.Click
        Me.LineShape1.BorderColor = System.Drawing.Color.Red
        Me.LineShape1.BorderWidth = 2
        Me.LineShape1.Name = "LineShape1"
        Me.LineShape1.X1 = 500 - EthernetIPforCLXComm1.ReadSynchronous("Axis1.RMCActPosition", 1)(0)
        Me.LineShape1.X2 = 500 - EthernetIPforCLXComm1.ReadSynchronous("Axis1.RMCActPosition", 1)(0)
        Me.LineShape1.Y1 = 100
        Me.LineShape1.Y2 = 500
    End Sub

Pages: [1]