Outlook 2003 Custom Form Popup

R

Ryan Axel

My ojbective is to create a form, with a listbox, to popup once Outlook
has opened. The form should display any new bullet board messages that
have been posted but the user has not read yet.

So far, I've been able to get my form to popup right as Outlook opens.
My next task is to get the messages (perhaps just the subjects?) added
to the listbox on the form.

How can I search through the bulletin board (mind you, there are a lot
of sub-folders and folders within those sub-folders) and add just the
message's title to the listbox?

Thanks in advance.


*** Sent via Developersdex http://www.developersdex.com ***
 
E

Eric Legault [MVP - Outlook]

Populating a list box is definitely the hard way. A better approach would be
to use the Outlook View Control:

Using the Microsoft Outlook View Control:
http://www.outlookcode.com/d/ovc.htm

However, you can't view sub-folders inside the control. You'd either need
one View Control per folder, or populate a list/combo box with folder names
so that when the user selects one its content is displayed in the View
Control.
 
R

Ryan Axel

So, what you're saying is that if I use a listbox, even then, it won't
be populated with all the messages from different sub-folders. Correct?

I can only make one listbox/view per sub-folder.

How about this. Is it possible for a form to just say, "You have "
however many " new messages that are unread in the bullet board" and
have that form just get populated with all the folders (even sub
folders) that could be bolded if there are new messages?

I'll check out the OVC, thanks.

*** Sent via Developersdex http://www.developersdex.com ***
 
R

Ryan Axel

I don't know why but I can't seem to find the OVC in Outlook 2003, not
even Outlook's Help can find it. I only see it being referred to Outlook
2000 and 2002, not 2003. Is this right?


*** Sent via Developersdex http://www.developersdex.com ***
 
E

Eric Legault [MVP - Outlook]

If you want to use a List Box, you can populate it with anything you want,
but you have to fill it yourself. I recommended the Outlook View Control
because all you have to do is pass it a folder and it loads all the messages
itself and looks just like the folder view in Outlook. But yes, you are
limited to displaying the messages in one folder.

If you want to display a list of e-mail folders with per-item formatting
(e.g. bold an item in the list), I believe you should look at the Tree View
control. If that doesn't support per-item formatting, there are plenty of
third-party ActiveX controls you can use (or maybe a free one at
http://www.vbaccelerator.com).
 

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

Top