Posts 11 - 18 of 18
First | Prev. | 1 2 | Next | Last
|
|
Eriq VanBibber
Posts: 16
Joined: 2019-10-02
|
Not exactly. If you refer to the animated GIF i provided, when i click the button to "show" the form, it appears, but only the "selector" appears.
Is this a VB.Net issue possibly?
I find that the EnableHeader value doesn't seem to have any effect on anything.
I followed the pattern of your example.
When outlook first starts, no form is shown (and hence no selector either).
When i click my button to show the form (as in your example), the only thing that shows up is the selector control, not my custom form.
i could obviously add code to switch to my custom form afterwards, but the selector control would still appear.
Is this maybe an Outlook 2010 thing as well? Perhaps Outlook 2013 and later behave differently? |
|
Posted 10 Oct, 2019 10:29:33
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 17493
Joined: 2006-05-11
|
Hello Eriq,
Eriq VanBibber writes:
I followed the pattern of your example.
We suppose you forget to call {form}.Activate() after {form}.Show(). Is this possible?
Regards from Belarus (GMT+3),
Andrei Smolin
Add-in Express Team Leader |
|
Posted 11 Oct, 2019 06:40:31
|
|
Top
|
|
Eriq VanBibber
Posts: 16
Joined: 2019-10-02
|
Wow. You are correct. I didn't use Activate after showing the form.
Not exactly me "forgetting" to do such...more like my own ignorance :).
Thanks for helping me sort this out!!! |
|
Posted 11 Oct, 2019 09:24:36
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 17493
Joined: 2006-05-11
|
Great! A perfectly chosen time for a portion of good news!
Have a good weekend!
Regards from Belarus (GMT+3),
Andrei Smolin
Add-in Express Team Leader |
|
Posted 11 Oct, 2019 09:41:35
|
|
Top
|
|
Eriq VanBibber
Posts: 16
Joined: 2019-10-02
|
Quick final question (and if such should be a new topic, please let me know).
It seems that one cannot add an Outlook Form to a non-addin project? I tried to add an Outlook Form to my 'plugin' project, which is a simple class library project that also has an ADXAddinAdditonalModule item and i got an error when i tried to add the form.
If this is true, can i create forms at runtime, in the main addin module? Or do all forms have to be 'created at birth' as i have seen you use this term before? |
|
Posted 11 Oct, 2019 09:55:06
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 17493
Joined: 2006-05-11
|
Hello Eriq,
Eriq VanBibber writes:
It seems that one cannot add an Outlook Form to a non-addin project?
Create it in your add-in project and drag it to your other project. Add required references.
In the ADXOlFormsManager.ADXBeforeFormInstanceCreate event, you learn the ADXOlFormsCollectionItem being processed and set the type name of the form class to the BeforeFormInstanceCreateEventArgs.FormClassType property; the forms manager will create an instance of that class.
Regards from Belarus (GMT+3),
Andrei Smolin
Add-in Express Team Leader |
|
Posted 11 Oct, 2019 10:08:33
|
|
Top
|
|
Eriq VanBibber
Posts: 16
Joined: 2019-10-02
|
Perfect. That's easier than what i was about to do (redo the Designer code for the form) :).
Thanks again for the quick response.
Have a nice weekend!
an assumption, but: большое спасибо!
(i was a Russian translator 20+ years ago...much of it lost due to non-use :(
-Eriq |
|
Posted 11 Oct, 2019 10:22:14
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 17493
Joined: 2006-05-11
|
Great! Perfect!
Regards from Belarus (GMT+3),
Andrei Smolin
Add-in Express Team Leader |
|
Posted 14 Oct, 2019 00:51:23
|
|
Top
|
|
Posts 11 - 18 of 18
First | Prev. | 1 2 | Next | Last
|