Click here to Skip to main content
15,898,134 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: DataGridView ComboBox column sub value from anther ComboBox column in the same grid? Pin
Henry Minute1-Oct-09 7:46
Henry Minute1-Oct-09 7:46 
GeneralRe: DataGridView ComboBox column sub value from anther ComboBox column in the same grid? Pin
Dave Kreskowiak1-Oct-09 8:55
mveDave Kreskowiak1-Oct-09 8:55 
GeneralRe: DataGridView ComboBox column sub value from anther ComboBox column in the same grid? Pin
Henry Minute1-Oct-09 9:20
Henry Minute1-Oct-09 9:20 
QuestionRecord output sound Pin
Gagan.2030-Sep-09 19:17
Gagan.2030-Sep-09 19:17 
QuestionHow to convert existing c/c++.net projects into vb.net Pin
jenica8130-Sep-09 17:25
jenica8130-Sep-09 17:25 
AnswerRe: How to convert existing c/c++.net projects into vb.net Pin
N a v a n e e t h30-Sep-09 17:53
N a v a n e e t h30-Sep-09 17:53 
AnswerRe: How to convert existing c/c++.net projects into vb.net Pin
εїзεїзεїз30-Sep-09 20:24
εїзεїзεїз30-Sep-09 20:24 
QuestionCan not get security code from an Keyboard Wedge Ibutton reader ( ps/2 ) Pin
andre de jong30-Sep-09 11:28
andre de jong30-Sep-09 11:28 
I'm developing a POS solution and my problem is:

I have a Keyboard Wedge Ibutton reader that is connected to the ps/2 port.

It handles login and logoff for the users.

it sends 6 chars to a textbox when plugged in and 6 when plugged out.

It works fine with a textbox when it has focus.

But when i want to capture these strings without a textbox with the keydown, ProcessCmdKey event
i only get the codes that the reader sends extra.

MenuLMenuRightUpClearMenuLMenuHomeClearMenuLMenuEndClear
MenuLMenuInsertMenuLMenuLeftUpClearMenuLMenuClearEnterLButton


I have tried the GetAsyncKeyState API ( as a test application )

sample below

Private sr As New StringBuilder

<DllImport("user32.dll")> _
Public Shared Function GetAsyncKeyState(ByVal vKey As Int32) As Short
End Function

Private WithEvents timer1 As New Timer

Sub New()
Me.KeyPreview = True
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub

Private Sub timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles timer1.Tick
For Each i As System.Int32 In [Enum].GetValues(GetType(Keys))
Dim x As Integer = GetAsyncKeyState(i)
If x = 1 Or x = -32767 Then
sr.Append([Enum].GetName(GetType(Keys), i))
End If

Next

If Not sr.ToString.Length = 0 Then

Textbox1.Text = sr.ToString

End If

End Sub

after the ibutton is inserted in the textbox1 appears:

MenuLMenuRightUpClearMenuLMenuHomeClearMenuLMenuEndClear
MenuLMenuInsertMenuLMenuLeftUpClearMenuLMenuClearEnterLButton

No security code.


What am i missing here?
AnswerRe: Can not get security code from an Keyboard Wedge Ibutton reader ( ps/2 ) Pin
Dave Kreskowiak30-Sep-09 14:42
mveDave Kreskowiak30-Sep-09 14:42 
GeneralRe: Can not get security code from an Keyboard Wedge Ibutton reader ( ps/2 ) Pin
andre de jong1-Oct-09 0:32
andre de jong1-Oct-09 0:32 
GeneralRe: Can not get security code from an Keyboard Wedge Ibutton reader ( ps/2 ) Pin
Dave Kreskowiak1-Oct-09 1:10
mveDave Kreskowiak1-Oct-09 1:10 
GeneralRe: Can not get security code from an Keyboard Wedge Ibutton reader ( ps/2 ) Pin
andre de jong1-Oct-09 1:51
andre de jong1-Oct-09 1:51 
GeneralRe: Can not get security code from an Keyboard Wedge Ibutton reader ( ps/2 ) [modified] Pin
andre de jong1-Oct-09 3:25
andre de jong1-Oct-09 3:25 
AnswerRe: Can not get security code from an Keyboard Wedge Ibutton reader ( ps/2 ) Pin
εїзεїзεїз30-Sep-09 20:26
εїзεїзεїз30-Sep-09 20:26 
GeneralRe: Can not get security code from an Keyboard Wedge Ibutton reader ( ps/2 ) Pin
andre de jong1-Oct-09 0:38
andre de jong1-Oct-09 0:38 
Questioninheritance Pin
rbjanaki30-Sep-09 10:13
rbjanaki30-Sep-09 10:13 
AnswerRe: inheritance Pin
Dave Kreskowiak30-Sep-09 10:39
mveDave Kreskowiak30-Sep-09 10:39 
GeneralRe: inheritance Pin
rbjanaki30-Sep-09 10:46
rbjanaki30-Sep-09 10:46 
GeneralRe: inheritance Pin
Christian Graus30-Sep-09 11:16
protectorChristian Graus30-Sep-09 11:16 
GeneralRe: inheritance Pin
Dave Kreskowiak30-Sep-09 11:25
mveDave Kreskowiak30-Sep-09 11:25 
GeneralRe: inheritance Pin
Gideon Engelberth30-Sep-09 18:03
Gideon Engelberth30-Sep-09 18:03 
QuestionImage Manipulation Questions Pin
Roland7130-Sep-09 9:42
Roland7130-Sep-09 9:42 
AnswerRe: Image Manipulation Questions Pin
Dave Kreskowiak30-Sep-09 10:31
mveDave Kreskowiak30-Sep-09 10:31 
QuestionXML Export and Import Pin
tjutagir30-Sep-09 6:01
tjutagir30-Sep-09 6:01 
AnswerRe: XML Export and Import Pin
Dave Kreskowiak30-Sep-09 7:23
mveDave Kreskowiak30-Sep-09 7:23 

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.