Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Mar 25th, 2006, 1:11 AM   #11
brownhead
Programmer
 
Join Date: Mar 2006
Location: California
Posts: 37
Rep Power: 0 brownhead is on a distinguished road
Send a message via AIM to brownhead Send a message via MSN to brownhead
Talking

Its a simple question, and the way the question is written isn't really all that annoying.. though I do like plain text better , no need to flame her (I'm guessing that your a her..), btw, I'm addressing hte people that DID give a hostile response, some of you were just helpful . But anyways, to answer your question, simple use the code below (Change Text1 to the name of your textbox):
Private Sub Text1_KeyPress(KeyAscii As Integer)
If (KeyAscii = 8 Or KeyAscii = 46) Then Exit Sub
If Not (KeyAscii >= 48 And KeyAscii <= 57) Or (KeyAscii >= 96 And KeyAscii >= 105) Then KeyAscii = 0
End Sub
^^If you'd like me to explain how or why the code above works (or if you have problems with it) you can IM me on AIM (SN is Brownhead622), MSN (SN is Brownhead622@hotmail.com), or just PM me. G'day all
brownhead is offline   Reply With Quote
Old Mar 25th, 2006, 1:17 AM   #12
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
You're just trying to get some lol.
__________________

Quote:
Originally Posted by Mohamed Jihad
Durka durka!
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it.

Download Code::Blocks now!
jayme is offline   Reply With Quote
Old Mar 25th, 2006, 2:17 AM   #13
UnKnown X
Hobbyist Programmer
 
UnKnown X's Avatar
 
Join Date: Dec 2005
Location: Sandvika, Norway
Posts: 114
Rep Power: 0 UnKnown X is an unknown quantity at this point
Send a message via MSN to UnKnown X
On every forum I've visited, without fail, when a guy helps a gal, there's at least one other person who assumes that he just wants to "get some". :p
UnKnown X is offline   Reply With Quote
Old Mar 25th, 2006, 10:06 AM   #14
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
No, when a guy helps a gal, then hands her his email address.. but it was a joke anyways, I dont care.
__________________

Quote:
Originally Posted by Mohamed Jihad
Durka durka!
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it.

Download Code::Blocks now!
jayme is offline   Reply With Quote
Old Mar 25th, 2006, 11:47 AM   #15
zorin
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 218
Rep Power: 4 zorin is on a distinguished road
Maybe she should read this - Posting and you
zorin is offline   Reply With Quote
Old Mar 25th, 2006, 12:28 PM   #16
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
She should read a lot of things, Zorin, but she'd rather be cute and helpless. I have no doubt it works for her in her usual world.
__________________
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 26th, 2006, 12:50 AM   #17
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
teehee i don't really want to learn anything!

lol!!!!!!! ;-*
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Mar 26th, 2006, 3:38 AM   #18
Benoit
Expert Programmer
 
Benoit's Avatar
 
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 555
Rep Power: 5 Benoit is on a distinguished road
How the hell are people supposed to learn if they are always ridiculed for asking questions?

And HackerGirl probably isn't even a girl and is just taking advantage of heterosexual males (and like-minded females). If I'm wrong, HackerGirl can write me a big long PM telling me how wrong I am

I would help you but I left all my VB knowledge in 10th grade. Perhaps you should consider posting what you have done so far, and showing these people that you have put some effort into your project
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4
Benoit is offline   Reply With Quote
Old Mar 26th, 2006, 11:12 AM   #19
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Quote:
Originally Posted by bgeraghty
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
That has to be the single most roundabout way to do something so simple.

1) Set KeyPreview on the form to True so that it gets keypresses even wheh child controls have focus.
2) Write a handler for KeyPress, KeyUp, or KeyDown in your form.
3) Success!
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Mar 26th, 2006, 11:30 AM   #20
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
Quote:
Originally Posted by Benoit
I would help you but I left all my VB knowledge in 10th grade. Perhaps you should consider posting what you have done so far, and showing these people that you have put some effort into your project
Don't forget to set your font to 72 either. Us programmers have a hard time reading font sizes as small as 12... We also have a hard time reading things that are black. That's why compilers always change font colors on us.
__________________

Quote:
Originally Posted by Mohamed Jihad
Durka durka!
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it.

Download Code::Blocks now!
jayme 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:55 PM.

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