You are on page 1of 3

‫‪10.5‬‬ ‫‪10‬‬ ‫‪9.5‬‬ ‫‪9‬‬ ‫‪8.5‬‬ ‫‪8‬‬ ‫‪7.5‬‬ ‫‪7‬‬ ‫‪6.5‬‬ ‫‪6‬‬ ‫‪5.5‬‬ ‫‪5‬‬ ‫‪4.5‬‬ ‫‪4‬‬ ‫‪3.

‫‪8‬‬ ‫‪7.5‬‬ ‫‪7‬‬ ‫‪6.5‬‬ ‫‪6‬‬ ‫‪5.5‬‬ ‫‪5‬‬ ‫‪4.5‬‬ ‫‪4‬‬ ‫‪3.5‬‬ ‫‪3‬‬ ‫‪2.5‬‬ ‫‪2‬‬ ‫الوقت‬

‫اليوم‬

‫النوم‬ ‫‪E‬‬ ‫كتابه‬ ‫حل الواجبات‬ ‫مذاكره‬ ‫تحضير الدرس‬

‫السبت‬

‫النوم‬ ‫حل الواجبات‬ ‫‪E‬‬ ‫النوم‬ ‫تحضير الدرس‬ ‫مذاكره‬ ‫االحد‬

‫النوم‬ ‫لكتابه وقت‬ ‫النوم‬ ‫حل الواجبات‬ ‫مذاكره‬ ‫تحضير الدرس‬ ‫االثنين‬

‫النوم‬ ‫‪E‬‬ ‫للكتابه‬ ‫مذاكره‬ ‫حل الواجبات‬ ‫تحضير الدرس‬ ‫الثالثاء‬


‫وقت‬

‫النوم‬ ‫تحضير‬ ‫كتابه‬ ‫‪E‬‬ ‫مذاكره‬ ‫حل الواجبات‬ ‫االربعاء‬


‫الدرس‬

‫النوم‬ ‫مذاكـــــــــــــــــــــــــــــــــــــــــــــــره‬ ‫راحـــــــــــــــــــــــــــــــــــــه‬ ‫الخميس‬


‫مراجعـــــــــــــــــــــــــــه سريعـــــــــــــــــــــــــــــــــــــــــــــــــــه‬ ‫راحـــــــــــــــــــــــــــــــــــــــــــــــــــه‬ ‫الجمعه‬

‫‪B.Net‬‬

‫‪Public Class Form1‬‬


‫‪Private Sub OnAdd(sender As Object, e As EventArgs) Handles btnAdd.Click‬‬
‫‪)(Dim btn As Button = New Button‬‬
‫‪btn.BackColor = System.Drawing.Color.DarkGray‬‬
‫‪btn.Height = 25‬‬
‫‪btn.Width = 40‬‬
btn.Text = textBox1.Text
flowLayoutPanel1.Controls.Add(btn)

)(Dim txt As TextBox = New TextBox


txt.Width = 120
AddHandler(txt).KeyUp, AddressOf OnTextBoxKeyUp
flowLayoutPanel2.Controls.Add(txt)

"" = textBox1.Text
End Sub

Private Sub OnButtonPaint(ByVal sender As Object, ByVal e As PaintEventArgs)


Dim btn As Button = CType(sender, Button)
,ControlPaint.DrawBorder(e.Graphics, btn.ClientRectangle
,System.Drawing.Color.Blue, 2, ButtonBorderStyle.Solid
,System.Drawing.Color.Blue, 2, ButtonBorderStyle.Solid
,System.Drawing.Color.Blue, 2, ButtonBorderStyle.Solid
)System.Drawing.Color.Blue, 2, ButtonBorderStyle.Solid
End Sub

Private Sub OnTextBoxKeyUp(sender As Object, e As KeyEventArgs)


)(Dim text As String = e.KeyCode.ToString().ToLower
If Not String.IsNullOrEmpty(text) Then
For Each control As Control In flowLayoutPanel1.Controls
If (TypeOf control Is Button) AndAlso (control.Text.ToLower() = text) Then
AddHandler(TryCast(control, Button)).Paint, AddressOf OnButtonPaint
)(TryCast(control, Button).Refresh
ElseIf (TypeOf control Is Button) Then
RemoveHandler(TryCast(control, Button)).Paint, AddressOf OnButtonPaint
)(TryCast(control, Button).Refresh
End If
Next
End If
End Sub
End Class

You might also like