A
AnyOne
Hi,
We have had another Vista 'problem' popup. It is related to Vista security
settings.
We use the `SendKeys` function in the `BeforeUpdate` event if sine controls
to send the `Esc` key and clear an invalid entry from a text box, check box,
etc. The `Undo` method works on bound controls, but on unbound controls the
`Undo` method does not do anything and `SendKeys` is the best we have been
able to find. Vista apparently blocks programmatic keyboard actions (makes
some sense), so now these `BeforeUpdate` functions generate an error and
create a confusing user situation. We have tried numerous local policy
settings changes, but the only thing that works is turning off User Account
Control. Seems a little drastic.
Any ideas for replacing `SendKeys` or getting around Vista security without
disabling UAC? Any suggestions greatly appreciated.
We have had another Vista 'problem' popup. It is related to Vista security
settings.
We use the `SendKeys` function in the `BeforeUpdate` event if sine controls
to send the `Esc` key and clear an invalid entry from a text box, check box,
etc. The `Undo` method works on bound controls, but on unbound controls the
`Undo` method does not do anything and `SendKeys` is the best we have been
able to find. Vista apparently blocks programmatic keyboard actions (makes
some sense), so now these `BeforeUpdate` functions generate an error and
create a confusing user situation. We have tried numerous local policy
settings changes, but the only thing that works is turning off User Account
Control. Seems a little drastic.
Any ideas for replacing `SendKeys` or getting around Vista security without
disabling UAC? Any suggestions greatly appreciated.