اهااا صح .. طيب اوك بس ضيف ليبل ثاني , وعدل الكود .. كل الليبل 1 عدلها الى الليبل 2 في كامل الكود بأستثناء اخر وحده الي تساوي c لأن بنخلي تظهر فيها النتيجه هذي ..
كذا الكوود بيصير ../
public class form1
dim a, b, c as double
private sub button1_click(byval sender as system.object, byval e as system.eventargs) handles button1.click
a = val(textbox1.text)
label2.text = "+"
textbox1.text = ""
textbox1.focus()
end sub
private sub button2_click(byval sender as system.object, byval e as system.eventargs) handles button2.click
a = val(textbox1.text)
label2.text = "-"
textbox1.text = ""
textbox1.focus()
end sub
private sub button3_click(byval sender as system.object, byval e as system.eventargs) handles button3.click
a = val(textbox1.text)
label2.text = "*"
textbox1.text = ""
textbox1.focus()
end sub
private sub button4_click(byval sender as system.object, byval e as system.eventargs) handles button4.click
a = val(textbox1.text)
label2.text = "/"
textbox1.text = ""
textbox1.focus()
end sub
private sub button5_click(byval sender as system.object, byval e as system.eventargs) handles button5.click
b = val(textbox1.text)
textbox1.text = ""
if label2.text = "+" then
c = a + b
end if
if label2.text = "-" then
c = a - b
end if
if label2.text = "*" then
c = a * b
end if
if label2.text = "/" then
c = a / b
end if
if label2.text = "^" then
c = a ^ b
end if
label1.text = c.tostring
end sub
private sub form1_load(sender as system.object, e as system.eventargs) handles mybase.load
end sub
end class
وبالعكس ياغالي مافي تعب ,, بالعكس كذا احسن عشان نتعلم تمام اسألني اذا احتجت شي وانا بسألك اذا احتجت منك شي ..