Click here to Skip to main content
16,005,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionscanners Pin
deepak02613-Oct-06 4:09
deepak02613-Oct-06 4:09 
AnswerRe: scanners Pin
Dave Kreskowiak13-Oct-06 4:23
mveDave Kreskowiak13-Oct-06 4:23 
QuestionKey press for individual comboboxes Pin
Racos13-Oct-06 2:59
Racos13-Oct-06 2:59 
AnswerRe: Key press for individual comboboxes Pin
Dave Kreskowiak13-Oct-06 4:21
mveDave Kreskowiak13-Oct-06 4:21 
GeneralRe: Key press for individual comboboxes Pin
Racos13-Oct-06 7:41
Racos13-Oct-06 7:41 
GeneralRe: Key press for individual comboboxes Pin
Dave Kreskowiak13-Oct-06 7:45
mveDave Kreskowiak13-Oct-06 7:45 
GeneralRe: Key press for individual comboboxes Pin
Racos13-Oct-06 8:05
Racos13-Oct-06 8:05 
GeneralRe: Key press for individual comboboxes Pin
Dave Kreskowiak13-Oct-06 8:16
mveDave Kreskowiak13-Oct-06 8:16 
And I think your missing the purpose of that Index parameter.
Private Sub cboField_KeyPress(Index As Integer, KeyAscii As Integer)
    Select Case Index
        Case 1:
            ' The first combobox fired KeyPress
            MsgBox "Hi from ComboBox 1!"

        Case 2:
            ' The second combobox
            MsgBox "Hi from ComboBox 2!"

        Case 3:
            MsgBox "Hi from ComboBox 3!"
    End Select

All you had to do was check the value of Index...




Dave Kreskowiak
Microsoft MVP - Visual Basic


GeneralRe: Key press for individual comboboxes Pin
Racos13-Oct-06 8:49
Racos13-Oct-06 8:49 
QuestionVB.Net Datagrid Pin
srah13-Oct-06 1:35
srah13-Oct-06 1:35 
AnswerRe: VB.Net Datagrid Pin
johngod22-Oct-06 12:55
johngod22-Oct-06 12:55 
Questionhow to print the contents of webbrowser Pin
Ali 11013-Oct-06 1:15
Ali 11013-Oct-06 1:15 
QuestionSerial communiacion with a PPC Pin
cosmomen13-Oct-06 0:54
cosmomen13-Oct-06 0:54 
AnswerRe: Serial communiacion with a PPC Pin
Dave Kreskowiak13-Oct-06 4:25
mveDave Kreskowiak13-Oct-06 4:25 
Questionhow to print a file Pin
Ali 11012-Oct-06 21:50
Ali 11012-Oct-06 21:50 
AnswerRe: how to print a file Pin
Dave Kreskowiak13-Oct-06 4:27
mveDave Kreskowiak13-Oct-06 4:27 
GeneralRe: how to print a file Pin
Ali 11014-Oct-06 0:48
Ali 11014-Oct-06 0:48 
GeneralRe: how to print a file Pin
Dave Kreskowiak14-Oct-06 4:14
mveDave Kreskowiak14-Oct-06 4:14 
Questionhow to convert date in dd/mm/yy format in vb.net. Pin
k_satish12-Oct-06 21:04
k_satish12-Oct-06 21:04 
AnswerRe: how to convert date in dd/mm/yy format in vb.net. Pin
sathish s12-Oct-06 21:10
sathish s12-Oct-06 21:10 
GeneralRe: how to convert date in dd/mm/yy format in vb.net. Pin
aloksingh200612-Oct-06 21:31
aloksingh200612-Oct-06 21:31 
GeneralRe: how to convert datepicker value in dd/mm/yy format in vb Pin
aloksingh200612-Oct-06 21:36
aloksingh200612-Oct-06 21:36 
GeneralRe: how to convert datepicker value in dd/mm/yy format in vb Pin
sathish s12-Oct-06 21:40
sathish s12-Oct-06 21:40 
AnswerRe: how to convert date in dd/mm/yy format in vb.net. Pin
Jodd13-Oct-06 0:39
Jodd13-Oct-06 0:39 
GeneralRe: how to convert date in dd/mm/yy format in vb.net. Pin
k_satish13-Oct-06 1:26
k_satish13-Oct-06 1:26 

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.