Click here to Skip to main content
15,924,935 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralReading Magnetic Stripe Pin
Member 116828118-Feb-05 8:22
Member 116828118-Feb-05 8:22 
GeneralRe: Reading Magnetic Stripe [EDITED] Pin
Dave Kreskowiak18-Feb-05 8:40
mveDave Kreskowiak18-Feb-05 8:40 
GeneralRe: Reading Magnetic Stripe [EDITED] Pin
Anonymous18-Feb-05 9:24
Anonymous18-Feb-05 9:24 
GeneralRe: Reading Magnetic Stripe [EDITED] Pin
Dave Kreskowiak18-Feb-05 9:55
mveDave Kreskowiak18-Feb-05 9:55 
GeneralRe: Reading Magnetic Stripe [EDITED] Pin
Qaiser.Muhammad18-Feb-05 14:20
Qaiser.Muhammad18-Feb-05 14:20 
GeneralRe: Reading Magnetic Stripe [EDITED] Pin
Dave Kreskowiak18-Feb-05 16:26
mveDave Kreskowiak18-Feb-05 16:26 
GeneralRe: Reading Magnetic Stripe [EDITED] Pin
Qaiser.Muhammad18-Feb-05 19:55
Qaiser.Muhammad18-Feb-05 19:55 
GeneralRe: Reading Magnetic Stripe [EDITED] Pin
Dave Kreskowiak19-Feb-05 3:01
mveDave Kreskowiak19-Feb-05 3:01 
WHY DIDN'T YOU SAY IT WAS CONNECTED TO THE MACHINE THROUGH THE KEYBOARD! D'Oh! | :doh:

Unfortunately, that's the only way your going to get it into a string. You'll have to use a TextBox, then grab the string out of the TextBox's .Text property, which returns a string.

If you don't want to use a TextBox, you COULD put together a some kind of string builder code using the keyboard events of the form, but you're card reader has to generate some kind of preamble, and possibly postamble, that your handler code can recognize so it knows the keystrokes that are coming down next are parts of the card data and not someone just typing in other parts of your form.

You might want to check into a card reader that connects to the serial port instead...


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Reading Magnetic Stripe [EDITED] Pin
Qaiser.Muhammad19-Feb-05 3:30
Qaiser.Muhammad19-Feb-05 3:30 
GeneralRe: Reading Magnetic Stripe [EDITED] Pin
Dave Kreskowiak19-Feb-05 4:21
mveDave Kreskowiak19-Feb-05 4:21 
GeneralRe: Reading Magnetic Stripe Pin
ACorbs18-Feb-05 18:24
ACorbs18-Feb-05 18:24 
GeneralCombo box Pin
kingcobra012818-Feb-05 8:21
kingcobra012818-Feb-05 8:21 
GeneralRe: Combo box Pin
Dave Kreskowiak18-Feb-05 8:44
mveDave Kreskowiak18-Feb-05 8:44 
GeneralRe: Combo box Pin
kingcobra012818-Feb-05 8:53
kingcobra012818-Feb-05 8:53 
GeneralRe: Combo box Pin
Dave Kreskowiak18-Feb-05 16:33
mveDave Kreskowiak18-Feb-05 16:33 
GeneralRe: Combo box Pin
kingcobra012819-Feb-05 6:25
kingcobra012819-Feb-05 6:25 
GeneralVB.NET listview clickitem Pin
rajith200518-Feb-05 6:47
rajith200518-Feb-05 6:47 
GeneralRe: VB.NET listview clickitem Pin
Dave Kreskowiak18-Feb-05 8:49
mveDave Kreskowiak18-Feb-05 8:49 
GeneralRe: VB.NET listview clickitem Pin
rajith200519-Feb-05 7:04
rajith200519-Feb-05 7:04 
Generala graph calculator Pin
ceraative18-Feb-05 4:58
ceraative18-Feb-05 4:58 
GeneralRe: a graph calculator Pin
Dave Kreskowiak18-Feb-05 8:50
mveDave Kreskowiak18-Feb-05 8:50 
GeneralRe: a graph calculator Pin
ceraative18-Feb-05 10:07
ceraative18-Feb-05 10:07 
GeneralRe: a graph calculator Pin
Dave Kreskowiak18-Feb-05 16:35
mveDave Kreskowiak18-Feb-05 16:35 
GeneralRe: a graph calculator Pin
ceraative18-Feb-05 23:19
ceraative18-Feb-05 23:19 
GeneralRe: a graph calculator Pin
Dave Kreskowiak19-Feb-05 3:02
mveDave Kreskowiak19-Feb-05 3:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.