|
Imports System.Windows.Forms
Imports System.Drawing.Drawing2D
Imports System.Windows.Forms.Design
Public Class dlgCorners
Private cnrs As CornersProperty = New CornersProperty()
Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
Me.DialogResult = System.Windows.Forms.DialogResult.OK
Me.Close()
End Sub
Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
TheShape.Corners.UpperLeft = cnrs.UpperLeft
TheShape.Corners.UpperRight = cnrs.UpperRight
TheShape.Corners.LowerLeft = cnrs.LowerLeft
TheShape.Corners.LowerRight = cnrs.LowerRight
Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.Close()
End Sub
Private Sub tbarUpperLeft_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tbarUpperLeft.Scroll
TheShape.Corners.UpperLeft = tbarUpperLeft.Value
TheShape.Invalidate()
End Sub
Private Sub tbarUpperRight_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tbarUpperRight.Scroll
TheShape.Corners.UpperRight = tbarUpperRight.Value
TheShape.Invalidate()
End Sub
Private Sub tbarLowerLeft_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tbarLowerLeft.Scroll
TheShape.Corners.LowerLeft = tbarLowerLeft.Value
TheShape.Invalidate()
End Sub
Private Sub tbarLowerRight_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tbarLowerRight.Scroll
TheShape.Corners.LowerRight = tbarLowerRight.Value
TheShape.Invalidate()
End Sub
Private Sub tbarAll_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tbarAll.Scroll
tbarUpperLeft.Value = tbarAll.Value
tbarUpperRight.Value = tbarAll.Value
tbarLowerLeft.Value = tbarAll.Value
tbarLowerRight.Value = tbarAll.Value
TheShape.Corners.UpperLeft = tbarAll.Value
TheShape.Corners.UpperRight = tbarAll.Value
TheShape.Corners.LowerLeft = tbarAll.Value
TheShape.Corners.LowerRight = tbarAll.Value
TheShape.Invalidate()
End Sub
Private Sub dlgCorners_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
cnrs.UpperLeft = TheShape.Corners.UpperLeft
cnrs.UpperRight = TheShape.Corners.UpperRight
cnrs.LowerLeft = TheShape.Corners.LowerLeft
cnrs.LowerRight = TheShape.Corners.LowerRight
End Sub
End Class
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I first got hooked on programing with the TI994A. After it finally lost all support I reluctantly moved to the Apple IIe. Thank You BeagleBros for getting me through. I wrote programs for my Scuba buisness during this time. Currently I am a Database manager and software developer. I started with VBA and VB6 and now having fun with VB.NET/WPF/C#...