PDA

View Full Version : Visual Basic 6 HELP!



Kev_Dawg
04-27-2005, 11:40 AM
Alright I wanna make a calculator well I wanna make the +,=,*,/ buttons. But when I press them and press = to redirect the answer to a textbox it dont work well it works but it uses the first line which it is + so it adds all the numbers even if u press the * Button

I don't know if I explained it well I hope someone can help me.

Kev_Dawg
04-27-2005, 11:53 AM
I added variables so I can use for the buttons I created 2 just to test it

Dim plus as Integer
Dim times as integer

I don't know if the integer variable is what I am suppose to use or should I use string? I'm so confused help.

Kev_Dawg
04-27-2005, 12:55 PM
Also is there any tutorials out there for me to learn more about this program.

WxWitch
04-27-2005, 01:19 PM
Hey Dawg in answer to your question use the following link to access the MSDN library. This resource should provide answers to your question plus a little bit more.
http://msdn.microsoft.com/library/default.asp .

WxWitch
04-27-2005, 01:26 PM
Oh yeah click the + sign beside development tools then select Visual Basic 6 or use the search box and type in calculator. The following link is what I think you are looking for.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexpvb/html/designingcalculator.asp