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.

Re: clear type/click ahead buffer VB.NET by Jerod

Jerod
Fri Sep 14 12:03:18 PDT 2007

On Sep 13, 8:23 am, vsciw <ian.watk...@vscsolutions.com> wrote:
> 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;
}


Re: clear type/click ahead buffer VB.NET by Jerod

Jerod
Fri Sep 14 12:04:15 PDT 2007

On Sep 14, 1:03 pm, Jerod Houghtelling <houghtell...@gmail.com> wrote:
> On Sep 13, 8:23 am, vsciw <ian.watk...@vscsolutions.com> wrote:
>
> > 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;
>
> }

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


Re: clear type/click ahead buffer VB.NET by vsciw

vsciw
Mon Sep 17 02:56:20 PDT 2007

On 14 Sep, 20:04, Jerod Houghtelling <houghtell...@gmail.com> wrote:
> On Sep 14, 1:03 pm, Jerod Houghtelling <houghtell...@gmail.com> wrote:
>
>
>
>
>
> > On Sep 13, 8:23 am, vsciw <ian.watk...@vscsolutions.com> wrote:
>
> > > 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;
>
> > }
>
> Sorry my response was in C#, but the same logic should work in VB.- Hide quoted text -
>
> - Show quoted text -

Thanks Jerod.

We'll give this a try.

Ian.