Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Visual Basic (https://www.askmehelpdesk.com/forumdisplay.php?f=469)
-   -   Visual basic (https://www.askmehelpdesk.com/showthread.php?t=336487)

  • Mar 31, 2009, 11:01 PM
    Sudisha
    Visual basic
    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.
  • Apr 2, 2009, 05:16 AM
    Perito
    Quote:

    Originally Posted by Sudisha View Post
    I want to to create a calculator in Visual Basic. How can I do this? The only keys that are present are (0-9, +, -, *, /, ., = clear) this code are present. 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.