Icon for custom form region in the Outlook ribbon can be set programmatically as follows:
- Firstly in Solution Explorer, double click on the .resx file of the form region.
- Click on Add Resource->Add Existing File option and select the desired icon file through the Browse window. This will add the image file in a separate Resources folder.
- Navigate to the InitializeManifest() function in the code window of form region file and add the following line:
In the above code, “PageIcon” is the name given to the image while adding it to the .resx file.
No comments:
Post a Comment