ياريت توضيح اجابة السؤال ده
السؤال الخامس
اذكر قيمة x
بعد مرور ثلاث ثوانى بفرض أن قيمة الخاصية interval
للمؤقت timer1
هي 1000
1-
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Static x As Integer
x = x + 1
MsgBox(x)
End Sub
2-
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim x As Integer
x = x + 1
MsgBox(x)
End Sub