How to: Set default value for common control in custom form

  • Thread starter Thread starter Sue Mosher [MVP-Outlook]
  • Start date Start date
I've created a custom journal form, and added the Entry Type control. I'd
like to set the default value to 'Note', but the control's properties don't
allow me to change the default text value from 'Phone Call'. I've tried
adding the control by dragging it from the Field Chooser as well as creating
a new combobox but had no luck.

Does anyone know how to do this? Thanks.
 
Sue,

I tried that, was able to edit it in the form, but the value never stuck.
What's odd is that when I drag the Entry Type control onto the form, it
doesn't have the appearance of a combo box as it usually looks on standard
Journal forms. Instead, it appears as a 'ghosted' text box with a label
control. When looking at the properties for this text box, the Read Only
checkbox is checked but is disabled (ghosted). I'm looking for the simplest
way to have the Entry Type control on the form . . is this possible with new
forms? I know that Outlook grabs the source values from the registry.

Thanks,
- Keith
 
Ah, it took me a minute to realize what you were trying to do. The Entry
Type control that Outlook itself uses on the main Journal page is not
exposed to developers. I don't know why that field appears on a custom form
as read-only, because you can certainly set it in code. What you might have
to do is populate an unbound combo box, then use its Click event to set the
actual Item.Type property.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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