clear type/click ahead buffer VB.NET

  • Thread starter Thread starter vsciw
  • Start date Start date
V

vsciw

Hi.

We have developed PDA applications using VB.NET cf2.0. is it possible
to flush the type-ahead buffer when a new form is opened?

We have impatient users who may tap a button on the screen which opens
a new form but before the form opens tap the button again. if the new
form has a button in the same place as the first, the second tap
selects the button on the new form.

Thanks. Ian.
 
Hi.

We have developed PDA applications using VB.NET cf2.0. is it possible
to flush the type-ahead buffer when a new form is opened?

We have impatient users who may tap a button on the screen which opens
a new form but before the form opens tap the button again. if the new
form has a button in the same place as the first, the second tap
selects the button on the new form.

Thanks. Ian.

We use a simple hack to get around this problem. On each form we
create a boolean value that we check during events.

private bool m_InProgress = false;

private void Form1_Load(...)
{
m_InProgress = true;

// do work ...

m_InProgress = false;
}

private void Button1_Click(...)
{
if(m_InProgress) return;
m_InProgess = true;

// Handle event

m_InProgress = false;
}
 
We use a simple hack to get around this problem. On each form we
create a boolean value that we check during events.

private bool m_InProgress = false;

private void Form1_Load(...)
{
m_InProgress = true;

// do work ...

m_InProgress = false;

}

private void Button1_Click(...)
{
if(m_InProgress) return;
m_InProgess = true;

// Handle event

m_InProgress = false;

}

Sorry my response was in C#, but the same logic should work in VB.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top