Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 22nd, 2004, 05:56 PM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default With SendInput, KEYEVENTF_KEYUP makes no keyup

Hi,

In VB.NET win forms,
Using SendInput Function.
In its call, it uses a INPUT structure using a KEYBDINPUT structure.
In KEYBDINPUT we can set dwFlags with KEYEVENTF_KEYUP (a const = 2)

But when we use it, it is still as pressing a key, not as a release key event. So, we can send a SHIFT down event, but not able to send a SHIFT keyup in order to unshift.

Same thing with any letter. Even if we set dwFlags with KEYEVENTF_KEYUP, it types again the letter.

Thanks
Marc

Any tips about that bug?

Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
The thing makes me confuse. explain to me please PhungVinh General .NET 0 June 22nd, 2006 12:53 AM
PlaySound makes wierd noise darthziv C# 2 April 5th, 2006 02:52 AM
KeyUp doesn't work on Form bmains Pro VB.NET 2002/2003 2 June 5th, 2005 05:24 AM
Capturing Keyup & KeyDown in a Datagrid SupaHoopsa General .NET 3 October 11th, 2004 03:40 PM
Editing makes a topic active? Snib Forum and Wrox.com Feedback 2 April 7th, 2004 08:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.