Description: Custom Compass control, will show direction or degrees.
Private Sub Text1_Change()
'some basic error checking
If Val(Text1.Text) > 359 Then
Text1.Text = (Val(Text1.Text) - 360)
End If
'call the control
Compass.Value = Text1.Text
End Sub
Easy example of using sin in graphics applications.
This file came from Planet-Source-Code.com...the home millions of lines of source code
You can view comments on this code/and or vote on it at: http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=59560&lngWId=1
The author may have retained certain copyrights to this code...please observe their request and the law by reviewing all copyright conditions at the above URL.