Imports System.Drawing.Drawing2D
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("Bye")
End
End Sub
Private Sub HScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles HScrollBar1.Scroll
Me.Opacity = CType(HScrollBar1.Value, Integer) / 100
End Sub
Private Sub FormShape(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles HScrollBar2.Scroll, HScrollBar3.Scroll
Dim t As New GraphicsPath
Dim r As Rectangle
r = New Rectangle(0, 0, HScrollBar2.Value, HScrollBar3.Value)
t.AddEllipse(r)
Me.Region = New Region(t)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim t As New GraphicsPath
Dim r As Rectangle
r = New Rectangle(0, 0, HScrollBar2.Value, HScrollBar3.Value)
t.AddEllipse(r)
Me.Region = New Region(t)
Me.Opacity = "1"
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
Static i As Integer
i = i + 10
Me.******** = New Point(i, Me.********.Y)
End Sub
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
MsgBox("closing")
e.Cancel = True
End Sub
Private Sub Form1_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
MsgBox("closed")
End Sub
Private Sub MenuItem4_Select(ByVal sender As System.Object, ByVal e As System.EventArgs)
MsgBox("hh")
End Sub
End Class
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("Bye")
End
End Sub
Private Sub HScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles HScrollBar1.Scroll
Me.Opacity = CType(HScrollBar1.Value, Integer) / 100
End Sub
Private Sub FormShape(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles HScrollBar2.Scroll, HScrollBar3.Scroll
Dim t As New GraphicsPath
Dim r As Rectangle
r = New Rectangle(0, 0, HScrollBar2.Value, HScrollBar3.Value)
t.AddEllipse(r)
Me.Region = New Region(t)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim t As New GraphicsPath
Dim r As Rectangle
r = New Rectangle(0, 0, HScrollBar2.Value, HScrollBar3.Value)
t.AddEllipse(r)
Me.Region = New Region(t)
Me.Opacity = "1"
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
Static i As Integer
i = i + 10
Me.******** = New Point(i, Me.********.Y)
End Sub
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
MsgBox("closing")
e.Cancel = True
End Sub
Private Sub Form1_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
MsgBox("closed")
End Sub
Private Sub MenuItem4_Select(ByVal sender As System.Object, ByVal e As System.EventArgs)
MsgBox("hh")
End Sub
End Class
