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

You are currently viewing the Pro Visual Basic 2005 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 December 5th, 2009, 06:39 AM
Authorized User
 
Join Date: Nov 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default Detect User Input during cycle (For, Do etc.) or procedure

Hi guys,

I want to detect and respond to a mouse click / kbd button input occuring randomly during a cycle or procedure execution. Usually, the form becomes "deaf" when some processing is done (a cycle, procedure) until the end of it. I'm sure there's a way to do this.

Thanx

Mikey
 
Old December 6th, 2009, 12:53 PM
Authorized User
 
Join Date: Nov 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So guys,

a solution is to use threads (i.e. multithreading). But I wondered if .NET hasn't more simple a solution, such as somehow "refreshing" inputs. Good old Pascal had a function, called "Keypressed", that scanned the keyboard buffer and intercepted any... key pressed in the meantime. I wish there were a similar "Mousepressed" function in VB.net.

(PS. Long live Google).
 
Old December 7th, 2009, 09:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Hi...

Application.DoEvents is still alive.. it's the simple way to read other inputs.

In VB6, you could also read the queue to search for a specific message. I'm sure you can do the same in .net
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Detect when the user clicks on close button nanajee Javascript 2 March 4th, 2009 10:04 PM
Parameterised Input stored procedure fdtoo SQL Server 2000 0 November 7th, 2007 07:11 AM
Detect weather IIS installed on user machine in c# saeedahmed C# 1 January 5th, 2006 01:37 PM
Help with DreamweaverMX and Stored Procedure input Chc325 Dreamweaver (all versions) 3 October 8th, 2004 01:49 PM
How to detect if a user is logon a Windows NT øej Pro VB.NET 2002/2003 1 January 23rd, 2004 10:30 AM





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