20100521部内勉強会

738 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
738
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

20100521部内勉強会

  1. 1. Microsoft Small Basic
  2. 2. Public Class Form1 Dim x, y As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load x = 0 y = 0 Timer1.Interval = 100 Timer1.Enabled = True End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim g As Graphics g = CreateGraphics() g.Clear(Color.White) x = x + 1 y = y + 1 g.FillEllipse(Brushes.Aquamarine, x, y, 30, 30) If (x + 60 > Me.Width) Then Timer1.Enabled = False End If End Sub End Class 画面の上を円が左上から右下へと移動する処理を「Visual Basic」で記述したコード
  3. 3. x=0 y=0 ball = Shapes.AddEllipse(30,30) For x=0 To GraphicsWindow.Width Shapes.Move(ball, x, y ) y=y+1 Program.Delay(10) EndFor 画面の上を円が左上から右下へと移動する処理を「Small Basic」で記述したコード

×