variable_array(0)="variable_checkbox1" 'variable contents of the
array, contents are not known"
variable_array(1)="variable_checkbox2"
variable_array(2)="variable_checkbox3"
variable_array(3)="variable_checkbox4"
Set objPage = Item.GetInspector.ModifiedFormPages("Message")
Set Frame1 = objPage.Controls("Frame1")
''loop and add checkbox controls to the Frame1 from the
variable_array.
''Store them in the checkbox_array
for i = 0 to ubound(variable_array)
set checkbox_array(i)=Frame1.Controls.Add( "Forms.Checkbox.
1",variable_array(i) )
checkbox_array(i).Caption=variable_array(i)
checkbox_array(i).Alignment = 1
checkbox_array(i).AutoSize=true
checkbox_array(i).Left=50
checkbox_array(i).Top=(i+1)*checkbox_array(i).Height
next
end sub
I sincerely appreciate your help,
Stan
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Stan Sager" <sag...@gmail.com> wrote in message
news:292e83b2-39d5-4e29...@v20g2000yqv.googlegroups.com...
A form is to send one specific message to number of people, that are
chosen within a form. The types of people are derived by looking into
the addressbook. It looks at a specific distribution list, and for
each nested distribution list it creates a tab within a MultiTab
control, and for each person -- a checkbox with its name. So we do not
know how many tabs and listbox or checkboxes we are going to use. So
is there perhaps any way to trap such signal to evaluate if any
changes were present from a parent MultiTab control (or frame?)
Stan
On Mar 10, 1:57 pm, "Ken Slovak - [MVP - Outlook]"
<kenslo...@mvps.org> wrote:
> That's never going to work in Outlook form code. You can do similar things
> with arrays of checkboxes with Windows Forms or things like that but not
> with Outlook forms and form code. Use a listbox with checkboxes or a similar
> control that fires only 1 event that you can code for.
>
> --
> Ken Slovak
> [MVP - Outlook]http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm
>
> "Stan Sager" <sage...@gmail.com> wrote in message
What I would do is use a listbox or other control that can have its list
modified at runtime and that can show checkboxes. An alternative would be a
grid control. However, any controls used in an Outlook from won't fire
almost any of their events and may crash the form. Outlook forms are just
not very robust for what you want to do.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Stan Sager" <sag...@gmail.com> wrote in message
news:b91024c3-6a3b-4b76...@15g2000yqi.googlegroups.com...
Frankly I am both surprised and disappointed that Microsoft decided to
implement such poor API, terrible version of vbscript and gimped
controls. And also that with the new versions of the Office they did
not bother to update their code for the better.
Anyways, thank you very much for your help.
Stan
On Mar 11, 9:52 am, "Ken Slovak - [MVP - Outlook]"
<kenslo...@mvps.org> wrote:
> You can't do what you want to do with Outlook forms. You need to redesign
> your architecture. You have to hard-code any event handlers in Outlook form
> code. Also, I'd be very wary of creating too many tabs on that multitab
> control. When you add too many controls in an Outlook form it becomes
> completely unstable and may even crash Outlook in addition to the form.
>
> What I would do is use a listbox or other control that can have its list
> modified at runtime and that can show checkboxes. An alternative would be a
> grid control. However, any controls used in an Outlook from won't fire
> almost any of their events and may crash the form. Outlook forms are just
> not very robust for what you want to do.
>
> --
> Ken Slovak
> [MVP - Outlook]http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm
>
> "Stan Sager" <sage...@gmail.com> wrote in message
The development efforts have gone into COM addins and recently into Form
Regions. Both are far more robust and modern. Using addins I can do exactly
what you are looking to do, just not on forms or with form code. I'd be
using Windows Forms called from a button I'd add to the toolbars or ribbons.
I only make use of custom forms where they are absolutely necessary, where a
custom UI must be displayed in an Outlook form. If any alternative means of
displaying a desired UI is possible I'd use that rather than custom forms.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Stan Sager" <sag...@gmail.com> wrote in message
news:78a71f29-110d-45e1...@b30g2000yqd.googlegroups.com...
Thanks,
Stan
On Mar 12, 10:17 am, "Ken Slovak - [MVP - Outlook]"
<kenslo...@mvps.org> wrote:
> Forms really haven't changed all that much since before Outlook was
> released. MS never put much development effort there, and custom forms just
> aren't very robust. Since the technology hasn't changed since before 1997 no
> more modern things have been added except where absolutely necessary.
>
> The development efforts have gone into COM addins and recently into Form
> Regions. Both are far more robust and modern. Using addins I can do exactly
> what you are looking to do, just not on forms or with form code. I'd be
> using Windows Forms called from a button I'd add to the toolbars or ribbons.
>
> I only make use of custom forms where they are absolutely necessary, where a
> custom UI must be displayed in an Outlook form. If any alternative means of
> displaying a desired UI is possible I'd use that rather than custom forms.
>
> --
> Ken Slovak
> [MVP - Outlook]http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm
>
> "Stan Sager" <sage...@gmail.com> wrote in message
I'm not sure what you want to read about this, installation is just from any
installer. If you want to find out more about COM addins in general you can
look at the material at www.outlookcode.com on COM addins to start with.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Stan Sager" <sag...@gmail.com> wrote in message
news:b5f1ebd5-41f4-4b30...@z35g2000yqd.googlegroups.com...