Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 12th, 2005, 2:01 PM   #1
zorin
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 218
Rep Power: 4 zorin is on a distinguished road
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.
zorin is offline   Reply With Quote
Old Sep 12th, 2005, 2:08 PM   #2
BinaryStorm
Programmer
 
BinaryStorm's Avatar
 
Join Date: Sep 2005
Location: Požega, Croatia
Posts: 93
Rep Power: 4 BinaryStorm is on a distinguished road
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.
BinaryStorm is offline   Reply With Quote
Old Sep 12th, 2005, 2:39 PM   #3
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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."
Infinite Recursion is offline   Reply With Quote
Old Sep 12th, 2005, 2:51 PM   #4
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
@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.
coldDeath is offline   Reply With Quote
Old Sep 12th, 2005, 4:10 PM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
@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
DaWei is offline   Reply With Quote
Old Sep 12th, 2005, 4:28 PM   #6
zorin
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 218
Rep Power: 4 zorin is on a distinguished road
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
zorin is offline   Reply With Quote
Old Sep 12th, 2005, 4:31 PM   #7
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Well...

Dim answer As Double

answer = num1 * num2
Easy, no?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Sep 12th, 2005, 5:01 PM   #8
zorin
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 218
Rep Power: 4 zorin is on a distinguished road
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
zorin is offline   Reply With Quote
Old Sep 12th, 2005, 6:50 PM   #9
Cipher
Hobbyist Programmer
 
Cipher's Avatar
 
Join Date: Feb 2005
Location: /home/cipher
Posts: 123
Rep Power: 4 Cipher is on a distinguished road
Send a message via AIM to Cipher Send a message via MSN to Cipher
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....
Cipher is offline   Reply With Quote
Old Sep 13th, 2005, 3:11 AM   #10
zorin
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 218
Rep Power: 4 zorin is on a distinguished road
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.
zorin is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:32 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC