ICONICO

Discussion Thread

UniToolbox

Message Thread

Developer ComponentFor WindowsUniToolbox

UniToolbox iconThe 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.
by Vikrant Agarwal on Mar 19 2009 9:32am Reply

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?
by Nico Westerdale on Mar 24 2009 10:23am Reply

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.
by Wapper on Apr 9 2009 2:04am Reply

Keyup event for listview is giving wrong values.

With the latest version everything seems to work fine for us!
by Nico Westerdale on Apr 9 2009 10:41am Reply

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.
by Wapper on Apr 12 2009 7:44am Reply

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!
by Nico Westerdale on Apr 12 2009 12:49pm Reply

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.
by Wapper on Apr 12 2009 1:21pm Reply

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!
by Nico Westerdale on Apr 12 2009 1:49pm Reply

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.
by Wapper on Apr 21 2009 7:18am Reply

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.
by Nico Westerdale on Apr 21 2009 12:08pm Reply

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
by Wapper on May 9 2009 10:41am Reply

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.
by Nico Westerdale on May 15 2009 12:59pm Reply

Our Software Stores

IconicoAccurate Design and Development Software

BitsDuJourDiscount Deal Coupons for Windows and Mac Software Apps

Our Software Services

IcoBlogOur Official Blog

© copyright 2004-2021 Iconico, Inc. Code & Design. All Rights Reserved. Terms & Conditions Privacy Policy Terms of Use Login