![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2006
Posts: 2
Rep Power: 0
![]() |
^.~ 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~ =^,^= |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#3 |
|
Professional Programmer
|
For being such a "Hacker" you don't seem to know much about much, huh?
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Mar 2006
Posts: 2
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Mar 2006
Posts: 15
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#6 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
Didn't VB offer the KeyPress event or something?
|
|
|
|
|
|
#7 |
|
Professional Programmer
|
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 |
|
|
|
|
|
#8 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#9 | |
|
Professional Programmer
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 372
Rep Power: 0
![]() |
Quote:
__________________
I am Addicted to Linux! |
|
|
|
|
|
|
#10 |
|
Hobbyist Programmer
|
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.... |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|