Discussion Thread
UniToolbox
Message Thread
The leading control suite for Unicode development in Visual Basic.
Posted in the UniToolbox Forum.
Keyup event for listview is giving wrong values.
Below if my code:
Private Sub UniListView1_KeyUp(KeyCode As Integer, Shift As Integer)
MsgBox (CStr(KeyCode) & vbCrLf & CStr(Shift))
End Sub
it gives 18 and 0 for ALT-F2 keys. As per standards, it should be 113 and 4.
Thanks for suggestions.
Keyup event for listview is giving wrong values.
I just tried this and I can assure you that I get 113 and 4. Perhaps you have some different keyboard configuration?
Keyup event for listview is giving wrong values.
I checked this, Vikrant is right, UniListView does not fire KeyUp or KeyDown events for ALT key. Worse, it doesn't fire these events for any key combination with ALT key, with any keyboard layout. Looks like a bug to me. Microsoft ListView handles ALT combinations properly.
I use version 1.3.0.1 of UniBox210.ocx.
Keyup event for listview is giving wrong values.
With the latest version everything seems to work fine for us!
Keyup event for listview is giving wrong values.
That's nice to hear. How can I obtain the newest version? The Unitoolbox2 that can be downloaded from here (unitoolbox_080402.exe) seems to include same OCX version that I use. Please let me know how to get the newer OCX.
Keyup event for listview is giving wrong values.
That is the latest version, just click the download link, and we can confirm that it does work fine!
Keyup event for listview is giving wrong values.
Well, this is what I'm trying to say, I use version 1.3.0.1 of UniToolbox-2 Controls (UniBox210.ocx, 1101824 bytes), which is a part of install package unitoolbox_080402.exe that you say is the latest version, but the behavior of UniListView1_KeyUp is incorrect.
Keyup event for listview is giving wrong values.
I understand what you are saying, however we also tested that version and found the behavior to be correct!
Keyup event for listview is giving wrong values.
Can you please create a VB project that illustrates the correct behavior, and send it to my email. Please also double check the OCX version and filesize.
I can do the same for you.
Keyup event for listview is giving wrong values.
Sure if you'd like to send it to nico [at] iconicodotcom then I'll take a look.
Keyup event for listview is giving wrong values.
Nico,
I sent you my sample project about 3 weeks ago, did you have a chance to take a look at this problem?
Denis
Keyup event for listview is giving wrong values.
Denis,
So sorry about this, I was looking at the wrong component. It does appear that there is a bug with the Alt key not being caught. So sorry about this. I'm thinking you might be able to get around it using the KeyPreview property of the form.