![]() |
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
|
|||
|
|||
![]() Hi all I'm trying to add a page of type "Microsoft.Vbe.Interop.Forms.UserForm" to a item in outlook. But i don't know the right way to do this in my VB.net COM add-in. i have got this code at the mo: Dim objPages As Outlook.Pages Dim objPage As Microsoft.Vbe.Interop.Forms.UserForm objPages = CType(activeClient.GetInspector.ModifiedFormPages, Outlook.Pages) Dim a As testing1 a = New testing1 objPage = objPages.Add("testing") activeClient.GetInspector.ShowFormPage("testing") activeClient.GetInspector.SetCurrentFormPage("test ing") But i now need to add testing1 on to the form i wish it was a easy as when u add a property page as the detail expalin below. So i need to pass the 'a' which is my form in my outlook com add-in Thanks a lot for any help Donald Add method as it applies to the Pages object. Creates a new page in the Pages collection and returns the new object. The Pages collection is initially empty, and there is a limit of 5 customizable pages per collection. expression.Add(Name) expression Required. An expression that returns a Pages collection object. Name Required. String. The name of the page. Add method as it applies to the PropertyPages object. Adds a new custom property page to the Microsoft Outlook Options dialog box or to the folder Properties dialog box. expression.Add(Page, Title) expression Required. An expression that returns a PropertyPages collection object. Page Required Variant. The property page being added to the dialog box. Title Optional String. The caption to be displayed on the property-page tab. |
#2
|
|||
|
|||
![]()
Why? Customizing a form programmatically is a very bad idea, unless your ultimate intention is to publish the modified form programmatically.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "donald" wrote in message ups.com... Hi all I'm trying to add a page of type "Microsoft.Vbe.Interop.Forms.UserForm" to a item in outlook. But i don't know the right way to do this in my VB.net COM add-in. i have got this code at the mo: Dim objPages As Outlook.Pages Dim objPage As Microsoft.Vbe.Interop.Forms.UserForm objPages = CType(activeClient.GetInspector.ModifiedFormPages, Outlook.Pages) Dim a As testing1 a = New testing1 objPage = objPages.Add("testing") activeClient.GetInspector.ShowFormPage("testing") activeClient.GetInspector.SetCurrentFormPage("test ing") But i now need to add testing1 on to the form i wish it was a easy as when u add a property page as the detail expalin below. So i need to pass the 'a' which is my form in my outlook com add-in Thanks a lot for any help Donald Add method as it applies to the Pages object. Creates a new page in the Pages collection and returns the new object. The Pages collection is initially empty, and there is a limit of 5 customizable pages per collection. expression.Add(Name) expression Required. An expression that returns a Pages collection object. Name Required. String. The name of the page. Add method as it applies to the PropertyPages object. Adds a new custom property page to the Microsoft Outlook Options dialog box or to the folder Properties dialog box. expression.Add(Page, Title) expression Required. An expression that returns a PropertyPages collection object. Page Required Variant. The property page being added to the dialog box. Title Optional String. The caption to be displayed on the property-page tab. |
#3
|
|||
|
|||
![]()
i just want to see how this works and if you can do if so how?
thanks Donald |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
outlook page file usage | Dan Gunks | Outlook - Installation | 0 | March 5th 06 11:00 PM |
Start up page in outlook | Tony Pagett | Outlook - General Queries | 5 | March 5th 06 04:02 PM |
how do I set up a calendar as a web page? | VA rider | Outlook - General Queries | 1 | January 29th 06 10:50 AM |
How to add second page of labels in contacts mail merge? | Rons Bicycle Works | Outlook - Using Contacts | 1 | January 23rd 06 03:06 PM |
Printing 4 months on 1 page | R.Connor | Outlook - Calandaring | 0 | January 10th 06 06:20 PM |