![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
In som environments I get an error when I try to display a user form
from a VB6 com addin in Outlook. Run-time error '406': Non-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page. The code adds a button to the Standard toolbar. The eventhandler for the button loads och show the user form. Since the form has no parent window, I dont think it's posible to display it as a modal form. The code works just fine on some machines. I'm using Outlook 2003. Please help! |
#2
|
|||
|
|||
![]()
You can display any form modally even without an owner argument. It might
not end up at the top of the z-order unless you massage the z-order but you certainly can do it. You could also get the main Outlook window and use the hWnd for that to set the owner of the form but you'd need to use the Win32 API's to do that with no parent form, not pure VB code. I'd also look into exactly what the differences are between the environments where what you're doing works and where it doesn't work. What sort of Inspector are you adding the button to: Outlook editor email, WordMail, appointment, etc.? -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm wrote in message ups.com... In som environments I get an error when I try to display a user form from a VB6 com addin in Outlook. Run-time error '406': Non-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page. The code adds a button to the Standard toolbar. The eventhandler for the button loads och show the user form. Since the form has no parent window, I dont think it's posible to display it as a modal form. The code works just fine on some machines. I'm using Outlook 2003. Please help! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook addin being called form Word | [email protected] | Add-ins for Outlook | 1 | October 3rd 06 11:51 PM |
Addin problem during load | chris ampofo | Add-ins for Outlook | 4 | June 6th 06 03:32 PM |
problem with installer for addin | Claus | Add-ins for Outlook | 5 | May 18th 06 01:08 PM |
A different problem with Outlook Addin | Ram | Add-ins for Outlook | 1 | April 24th 06 03:31 PM |
unload COM addin problem | David Cebrian | Add-ins for Outlook | 3 | February 9th 06 11:26 AM |