Click here to Skip to main content
15,914,111 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: positioning a textbox in the AXMSFlexgrid cell Pin
aransiola27-Oct-07 9:28
aransiola27-Oct-07 9:28 
GeneralRe: positioning a textbox in the AXMSFlexgrid cell Pin
Dave Kreskowiak28-Oct-07 3:47
mveDave Kreskowiak28-Oct-07 3:47 
GeneralRe: positioning a textbox in the AXMSFlexgrid cell Pin
Member 410891213-Aug-10 6:10
Member 410891213-Aug-10 6:10 
Questiongrid view control Pin
kadkir27-Oct-07 0:21
kadkir27-Oct-07 0:21 
AnswerRe: grid view control Pin
Abhijit Jana27-Oct-07 1:21
professionalAbhijit Jana27-Oct-07 1:21 
QuestionText Input Detection Pin
Absenm26-Oct-07 22:55
Absenm26-Oct-07 22:55 
AnswerRe: Text Input Detection Pin
AliAmjad27-Oct-07 2:30
AliAmjad27-Oct-07 2:30 
AnswerRe: Text Input Detection Pin
Dave Kreskowiak27-Oct-07 3:47
mveDave Kreskowiak27-Oct-07 3:47 
The scanner should give you some capability to prepend a character string to what it scans. For example if the code it see is 1234567890, it should give you the ability to tell it to prefix the code with a character or two, like @123456789 is sent to your application.

Don't worry about the focus. The focus will change with every button that's pressed. On the Form, turn KeyPreview on. Handle the form's KeyDown event. In that event handler, check to see if the key being pressed is a "@", or whatever you want. If it is, then you can force the focus to the TextBox and let the rest of the keypresses through.

Oh, the scanner should also let to append a character to the string too, like ASCII 13 (ENTER).


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Text Input Detection Pin
Absenm29-Oct-07 13:55
Absenm29-Oct-07 13:55 
GeneralRe: Text Input Detection Pin
Dave Kreskowiak29-Oct-07 14:38
mveDave Kreskowiak29-Oct-07 14:38 
GeneralRe: Text Input Detection Pin
Absenm29-Oct-07 15:30
Absenm29-Oct-07 15:30 
GeneralRe: Text Input Detection Pin
Dave Kreskowiak29-Oct-07 18:12
mveDave Kreskowiak29-Oct-07 18:12 
QuestionHow to generate serial hard disk? Pin
sovysim26-Oct-07 22:47
sovysim26-Oct-07 22:47 
AnswerRe: How to generate serial hard disk? Pin
Abhijit Jana27-Oct-07 1:20
professionalAbhijit Jana27-Oct-07 1:20 
AnswerRe: How to generate serial hard disk? Pin
Dave Kreskowiak27-Oct-07 3:43
mveDave Kreskowiak27-Oct-07 3:43 
QuestionRefreshing a drawing Pin
twsted f826-Oct-07 21:37
twsted f826-Oct-07 21:37 
AnswerRe: Refreshing a drawing Pin
AliAmjad27-Oct-07 2:37
AliAmjad27-Oct-07 2:37 
AnswerRe: Refreshing a drawing Pin
Luc Pattyn27-Oct-07 3:35
sitebuilderLuc Pattyn27-Oct-07 3:35 
QuestionHow to program a digital persona fingerprint scanner in VB? [modified] Pin
meki_211826-Oct-07 18:37
meki_211826-Oct-07 18:37 
AnswerRe: How to program a digital persona fingerprint scanner in VB? Pin
aransiola27-Oct-07 0:59
aransiola27-Oct-07 0:59 
GeneralRe: How to program a digital persona fingerprint scanner in VB? Pin
meki_211827-Oct-07 6:13
meki_211827-Oct-07 6:13 
GeneralRe: How to program a digital persona fingerprint scanner in VB? Pin
Dave Kreskowiak27-Oct-07 9:19
mveDave Kreskowiak27-Oct-07 9:19 
GeneralRe: How to program a digital persona fingerprint scanner in VB? Pin
aransiola27-Oct-07 9:32
aransiola27-Oct-07 9:32 
GeneralRe: How to program a digital persona fingerprint scanner in VB? Pin
meki_211828-Oct-07 3:55
meki_211828-Oct-07 3:55 
AnswerRe: How to program a digital persona fingerprint scanner in VB? Pin
Dave Kreskowiak27-Oct-07 3:41
mveDave Kreskowiak27-Oct-07 3:41 

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.