Get Focus on a control

  • Thread starter Thread starter Vikas M H
  • Start date Start date
V

Vikas M H

Hi,
I am validating some controls on my outlook form for
proper data. The problem i have is, how do i get the
focus back on the control where no/invalid data is
entered after firing a massage box. I have written my
code in the Item_Write event. Another issue is, how do i
remove the default value "None" on a DateTime field
control. Even if i remove it from the Advanced Properties
setting.. it still comes back and the setting is not
saved... Any help regarding the same would be
appreaciated.

Thanks in advance
Vikas Haridas
 
You'd use the SetFocus method on the control. Unfortunately, sometimes it just doesn't work.

You cannot remove the default "None" on a date/time field, because Outlook always stores some value there.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
 

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