Click here to Skip to main content
14,930,671 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I saw a snippet on a book about creating a simple vb calculator the name of the form is 'test' but it does not seem to be working.
Here is how it looks like

Buttonno1_click(.declarations.)
Textbox1.text = () + "1"

Ok here, instead of displaying '1' on the textbox, it displays this on the textbox;

Test.form1, text:form1

Please how can i solve this.

What I have tried:

Have modified the codes but it does not still work, i really need your help and recommendations in this. Thankyou
Posted
Comments
Gerry Schmitz 4-Mar-21 16:25pm
   
Maybe there's a bug on the paper.

1 solution

your story is very incomplete, and shows no steps to reproduce.

a calculator is however very simple. even for beginners. i would suggest to make it yourself rather than using the snippet.


by the way, this is in no way valid code:
VB
Buttonno1_click(.declarations.)
Textbox1.text = () + "1"


i would not use that snippet.

seach on the popular video site (hint hint) for 'calculator in vb' and just follow the first video.
   
Comments
Richard Deeming 15-Mar-21 9:33am
   
YouTube videos are the absolute worst thing to learn from, especially for novice developers.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900