Google Search

Google
 

Monday, June 2, 2008

Video: How Do I: Create Custom Property Pages in Microsoft Outlook?

Presenter:Steve Hansen

Add your own custom property pages to the application Options dialog box and a folder’s Properties dialog box in Microsoft Outlook. Steve Hansen shows you how.


The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video

Minute 0

I Steve Hanson you reviewed Seo tips com the studios how do I customize property pages in my stuff out what organ look at today is how to add your own custom property page to the options dialog box in Outlook as well as to the properties praises that show up when you right click on a folder and click properties going to add a new tab right up your newly created a new outlook add in and I ll do it in Visual Basic and the first thing to do is to create a new user control
Minute 1

That contains all the functionality and controls that you want to appear in your party page bigger in size this user control to the default side and Outlook property page in the Senate to 410 x 355 and all new to do is add for this demo is one button to the control dissent protects in the point here is that the way part of his work and is in order to create this room after
Minute 2

An interface one of the properties in the interface is a property called dirty would simply tell Outlook whether or not things have changed on the property page to that Outlook can enable the apply button and apply the changes in the skin import namespace is here for the system Windows forms for Outlook and then for the runtime interop services mixing a minute to song is
Minute 3

Appear near the top is this needs to be a calm visible class so Outlook is a callback into the class here that are creating Sunnis become visible as I mentioned one of the things were going to do here is implement an interface specifically be public property page interface shows is that a few things to do to implement this interface one of the items implement is the apply method
Minute 4

And then this is the this is a mother that I call if you click the apply button in the property page so for this example does show a quick message another thing we need implement is the dirty property so this can be a read only property and this can create a private class level verbal here
Minute 5

XO need to implement the get page info method so we would use this method if you want to provide some help and help context associated with the custom property page I m not going to do anything with this one
Minute 6

And intensely Leavitt leave it blank similar things in there to do their news create a property for the caption for the property page you create in other read only property and going to return the text of the caption of optional on this is custom property page in order to frolic fineness and need to edit a dispatch ID in our little magic number that outlooks can
Minute 7

For that is 518 and a minimum that into my form and generate the click event handler for the button and owned to do in that button click said money is dirty or able to true others are similar to a need to do it or to really demonstrate how you d really go about implementing us that thing and stop here and a comeback into this effort run it once and you cannot better see what all at next nickel back over into this at them and just at the couple things you renewed to make this all work
Minute 8

First woman created a gurgle called namespace name in the start of event handler can initialize that to the application session men in order to display a ready custom property page to the option party bases or the property pages associated with a folder I need to handle two events so to add it to the options property pages that an application level with called options pages ad and at that event handler here mostly gets one of the parameters is pages
Minute 9

Some menus that are in use the add method passing in a new user control without a title in order to have a custom party pays to the property pages associate with folder we need to handle the options pages at event associated with a namespace sum going to use my options pages as event handler is that little bit of a template here symptoms of application is to be namespace and then we also need one more or more parameter here
Minute 10

We need to know what the folder is that is being quick to sub is going to handle the over to add a handler actually for that cinematic in the startup event at a handler for my namespace options pages ad is to be the address of my namespace options pages at event handler supposed and we should
Minute 11

To right click on a folder and select properties and there is the custom of partly page so this is what is a lot to do in those if I click the apply is currently disabled and even but even if I click it be apply button does not become unable so many to go back and add some code is to enable the apply button when you click on the button here also for the oxen dialog box also got a cab over there for test page sort order to make the apply button light up when in our form does become
Minute 12

Early need to use the property pane site object in Outlook and call into the onset is changed that the recall says changes can force Outlook to go back in and look at the dirty property that you ve implemented as part of the Outlook properties interface trick is in order to does remain to use a little little reflection so forcing them to do is add a verbal form I property page site up some in the wrong parts by their go into the user control that the variable there
Minute 13

And then whether to do in the Muslim click event handler I know my partly page is dirty I want to force Outlook to call and check the status of my dirty property so that s where one at the property page site on status change is immense and I need to use reflection to get to the property page sites from the ad some here called initialize property page site and clear couple of variables
Minute 14

A type variable which is set equal to the result of calling get played on a system that Windows forms form longer and create a string of verbal only give aid the full name of this assembly don t declare a notetaker goal
Minute 15

Than a Tuesday gives us to play and did I OLE object and singing to get information on the client side method some going to declare in info variable as system reflection method info in the Minnesota equal to the result of calling OLE object I get method and want to get information on the method
Minute 16

Client site and finally all set the property page site equal to the result of invoking my get client side method passing in me and nothing now to call initialize property big site I need to use the load events and all is simply call the missile is partly great site from this event handler
Minute 17

Snow and I bring up the properties and go to the test page reply is not enabled if I click on the make me dirty button fly does become enabled I can click on it and I can see that my event handler is working appropriately same thing with the customize property page on the options I log plies not enabled click the button applies enable I click it and get my event handler that includes as video on how to add customized property pages to the options dialog in myself a look thanks for watching everything

Click here to go to original video page



No comments: