I want to to create a calculator in visual basic. How can I do this.there only that key preasent what I know that is (0-9, +, -, *, /,. = cleare)this code are preasent. So tell me the code which code I use to create this buttons.
![]() |
I want to to create a calculator in visual basic. How can I do this.there only that key preasent what I know that is (0-9, +, -, *, /,. = cleare)this code are preasent. So tell me the code which code I use to create this buttons.
In all versions of Visual Basic, if you want a button that presents a given function, it's usually the simplest to "drop" a button on a form and label it with the appropriate prompt ("+", "-", "*", "/", "=", "1", "2", "3",. ). If you then double-click on each button, you'll generate an "on keypress handler" function. All you do is put the code you want to use in there.
Please let me know the version of Visual Basic you are using. This is a pretty easy project so it should be fairly simple to help you out.
All times are GMT -7. The time now is 01:58 AM. |