Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Mar 23rd, 2006, 7:23 AM   #1
HackerGirl
Newbie
 
Join Date: Mar 2006
Posts: 2
Rep Power: 0 HackerGirl is on a distinguished road
^.~ Can you help me "stroke my keys"???

HELP!!!! >.<;;;
I'm working on a standard calculator program, and I can't seem to get the basic function of using "KEYSTROKES" to enter the numbers being altered in the equation. So basically, I'm asking if anyone knows how I can use the number keys on the keyboard, as well as the command buttons on my calculator program to enter the numerical values being altered. Anyone know the simple code that can help me keep what little sanity I have left? ^.~?

Yours Truly,
~HackerGirl~ =^,^=
HackerGirl is offline   Reply With Quote
Old Mar 23rd, 2006, 7:27 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
First I would suggest that, as a new member, you read the forum's rules/FAQ, the "How to Post a Question" thread at the top of the C forum, and possibly the "How to ask questions the smart way" link in the rules/FAQ. Possibly if you spent as much time on checking out the community and researching code as you apparently have on how to manipulate post contents to ugly colors and sizes, you would have found your own answer. I doubt it. After all the above, you might come back and ask again, intelligently, if you have any sanity left.
__________________
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 Mar 23rd, 2006, 8:35 AM   #3
Indigno
Professional Programmer
 
Indigno's Avatar
 
Join Date: Dec 2005
Location: Anywhere non-productive
Posts: 267
Rep Power: 0 Indigno is an unknown quantity at this point
Send a message via AIM to Indigno Send a message via MSN to Indigno Send a message via Yahoo to Indigno
For being such a "Hacker" you don't seem to know much about much, huh?
Indigno is offline   Reply With Quote
Old Mar 23rd, 2006, 12:07 PM   #4
HackerGirl
Newbie
 
Join Date: Mar 2006
Posts: 2
Rep Power: 0 HackerGirl is on a distinguished road
Response to the usual jerks

(Here, a post so bland even you'd like DaWei V.v"“)

Well.... If you don't want to help me... you can simply reply with polite "no", without being such a jerk. I'm new to the visual basic system and I simply asked for a little relief in my quest to have my questions answered. But I suppose you'd rather ridicule me and my humorous approach to get help. So I'm sorry I'm so "beneath you" in Visual Basic knowledge that I have to come and ask for help. And I'm sorry you don't welcome my change from your dreary mundane fonts and bland, cruel humor. Please forgive me for not being as "omnipotent" as all of you. Now, are you going to help me or not, because my textbooks and further research online having given me no help whats so ever to the answer of my problem. Though I doubt those who would ridicule a person who asks questions, would help them learn and grow from the benefit of their "all powerful" knowledge.


Yours Truly,
HackerGirl x_x

In the words of Gloria Steinem
"Oppression has no logic - just a self-fulfilling prophecy, justified by a self-perpetuating system". It's seems quite true ... in this place.
HackerGirl is offline   Reply With Quote
Old Mar 23rd, 2006, 12:36 PM   #5
bgeraghty
Newbie
 
Join Date: Mar 2006
Posts: 15
Rep Power: 0 bgeraghty is on a distinguished road
I'm not really a fan of, nor very fluent in VB, but heres the first thing that came to mind:

I learned this in a VB.NET course in college.

Create a timer, and call the function GetAsyncKeyState. Then you check what key was pressed, and call the respective OnClick event function for that number or key.

Here's something to help you get started. http://www.freevbcode.com/ShowCode.asp?ID=4042
bgeraghty is offline   Reply With Quote
Old Mar 23rd, 2006, 12:37 PM   #6
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
Didn't VB offer the KeyPress event or something?
Polyphemus_ is offline   Reply With Quote
Old Mar 23rd, 2006, 12:39 PM   #7
Prm753
Professional Programmer
 
Prm753's Avatar
 
Join Date: Oct 2005
Location: United States
Posts: 447
Rep Power: 4 Prm753 is on a distinguished road
Send a message via AIM to Prm753 Send a message via MSN to Prm753
DaWei comes off as a little blunt, but he is trying to help you. Reading the forum FAQ's before posting a question makes it easier on everyone, from the OP to the ones that are trying to help.

He wanted you to specify your question in more detail. Is it from a console box, or is it gui based? Can you post your calculator code so far?

I have discovered that if you ask a question here, it helps to go and google the info that you are looking for, and then ask "Hi, I found code [x]. I don't really understand it all that well, and I need help putting it in the right place in my code. Can someone help?"

Then you place your code that you are looking for. Programmers are not going to up and write code for you even if you ask nicely for it. We want you to get some information for yourself and then come to us. Then we can help you.

Note the "How not to post a question:" link in my signature. I did exactly what you have done, but even worse.

We will help you, but it helps to do a little research before asking a question.
__________________
The world's first athletic computer geek!
The home of PrProgramsStudios
How not to post a question: <-- Please don't reply
Prm753 is offline   Reply With Quote
Old Mar 23rd, 2006, 1:00 PM   #8
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
In the words of DaWei Bubba
"Stupid, lazy cuteness has no logic - just a self-fulfilling prophecy for those destined to janitorial duties."
__________________
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 Mar 23rd, 2006, 1:54 PM   #9
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 376
Rep Power: 0 King is an unknown quantity at this point
Quote:
Originally Posted by Polyphemus_
Didn't VB offer the KeyPress event or something?
Yes is does, so go research that HackerGirl. KeyPress events are easy to learn and implement
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Old Mar 23rd, 2006, 2:23 PM   #10
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
We don't need any more arguments.
----------------------------------

As for your question, HackerGirl, I think this might work:

 Private Sub txtNumber_KeyPress(KeyAscii As Integer)

Your question didn't exactly make sense, so this is my best guess.

If you want to enter numerical values by using your keyboard, just make a text box and enter the values with the keyboard.

It would help if you read the forum rules though.
__________________
And there was much rejoicing... Yay....
Cipher 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 1:07 PM.

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