![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 218
Rep Power: 4
![]() |
calculator
Hi, Ive been given a assignment in witch to build a calculator in VB, does anyone know any starting points for this as im qoite new to this language.
|
|
|
|
|
|
#2 |
|
Programmer
Join Date: Sep 2005
Location: Požega, Croatia
Posts: 93
Rep Power: 4
![]() |
Well,
Do you know to add buttons, labels, etc... to form? Just make the basic calculator layout, and then double-click buttons with digits from 0-9 and assign them action. |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() ![]() |
show code, state problem.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#4 |
|
Expert Programmer
|
@IR
I think he was just looking for some theory, or a starting point ![]()
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#5 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
@coldDeath: Nothing wrong with IR's post, as many are seeking free homework services. Granted, the OP MIGHT be looking for some explication regarding what a calculator does in general terms. Why didn't you tell 'im? LOL!
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#6 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 218
Rep Power: 4
![]() |
I know how to add the buttons, but im just a bit stuck with some of the code that I should add into each button.
Like the code for number 1-9 then I just need to add the multplication sign but have no idea what the code for that is. Thanks for the help |
|
|
|
|
|
#7 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
|
|
|
|
|
|
#8 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 218
Rep Power: 4
![]() |
Anyway I should figure this out if I study a little, I asked here because you get downgraded if you ask for help at college.
Thanks to everyone that helped out |
|
|
|
|
|
#9 |
|
Hobbyist Programmer
|
If you ask for help at college you get downgraded?! But I live here at PFO for help, I need these guys help! I'm gonna fail college now!
![]()
__________________
And there was much rejoicing... Yay.... |
|
|
|
|
|
#10 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 218
Rep Power: 4
![]() |
No not exactly, but if you ask your course teacher here in london colleges they downgrade you cause its not fair on the people that do ithe work all by themselvs.
If you keep quiet about where you got help it should be fine and you will get the best grades in class hopefully. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|