Unless you want to get into quite complex Extended MAPI/C++ programming,
your form must be based on one of the six standard forms. The Post form is
the simplest. The article at
http://www.outlookcode.com/article.aspx?ID=32
has information on working with a list box on an Outlook custom form.
That said, let me repeat: An Outlook custom form is used to display a single
Outlook item. Your scenario doesn't seem to be interested in creating
Outlook items using your custom form. Why then are you seeking to use an
Outlook custom form for this scenario instead of a user form in Outlook VBA,
which works pretty much the same as a user form in VB?
Also note that the code behind a custom form is VBScript, not VBA.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Roland Sommer" <(E-Mail Removed)> wrote in message
news:d0fdc8f7-5f65-4f06-936c-(E-Mail Removed)...
>* Sue Mosher [MVP] wrote:
>
>> Note that this doesn't seem to be related to Outlook custom forms, the
>> topic
>> of this particular discussion forum. An Outlook form is used to display
>> an
>> individual Outlook item.
>
> ok, you're right, I forgot to mention that I will do this within
> Outlook. So I don't
> want VB and access via the application object, but create a new form
> within
> Outlook and fill a listbox or a grid using VBA. But I don't know how
> to start.
>
> Of course I know how to create a new form, but I can choose only Note,
> Task ... but I want to have an empty one to start. Or am I wrong? So
> how can
> I create a new form with a listbox as an easy example?