「東雲 忠太郎」の平凡な日常のできごと

「東雲 忠太郎」の平凡な日常のできごと

2010.04.12
XML
カテゴリ: カテゴリ未分類
Public Class Form1

'/角度が増える割合
Dim r_wari As Double = 0.2
Dim r_cnt As Double = 0
'/一個の角度
Dim r1 As Double = Math.PI / 10
'/半径
Dim rad1 As Integer = 90
'/中心


Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
r_cnt = r_cnt + r_wari
Dim x As Double = Math.Cos(r1 * r_cnt) * rad1 + center1
Dim y As Double = Math.Sin(r1 * r_cnt) * rad1 + center1
Me.Button1.Top = y
Me.Button1.Left = x
x = Math.Cos(r1 * (r_cnt + 2)) * rad1 + center1
y = Math.Sin(r1 * (r_cnt + 2)) * rad1 + center1
Me.Button2.Top = y
Me.Button2.Left = x
x = Math.Cos(r1 * (r_cnt + 4)) * rad1 + center1

Me.Button3.Top = y
Me.Button3.Left = x
End Sub

Private Sub Label1_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.MouseEnter
Timer1.Enabled = True


Private Sub Label1_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.MouseLeave
Timer1.Enabled = False
End Sub
End Class





お気に入りの記事を「いいね!」で応援しよう

Last updated  2010.04.12 21:26:06


【毎日開催】
15記事にいいね!で1ポイント
10秒滞在
いいね! -- / --
おめでとうございます!
ミッションを達成しました。
※「ポイントを獲得する」ボタンを押すと広告が表示されます。
x
X

© Rakuten Group, Inc.
X
Design a Mobile Site
スマートフォン版を閲覧 | PC版を閲覧
Share by: