For Creating a Calculator In VB Use the Following Codes.
1.For SUM.
TXTRESULT.Text=CInt(TXTNUM1.Text) + CInt(TXTNUM2.Text)
2.For SUB.
TXTRESULT.Text=CInt(TXTNUM1.Text) - CInt(TXTNUM2.Text)
3.FOR MULTIPLY.
TXTRESULT.Text=CInt(TXTNUM1.Text) * CInt(TXTNUM2.Text)
No comments:
Post a Comment