This function is called when Outlook is ready to load the form region manifest and it returns the embedded form region manifest file

Listing 14.37. Returning the embedded form region manifest file

Public Function GetFormRegionManifest( _ ByVal FormRegionName As String, _ ByVal LCID As Integer) As Object _

Implements Outlook._FormRegionStartup.GetFormRegionManifest

' Read the embedded manifest file out of the assembly. Dim MySimpleFormRegionManifest As String = _

My.Resources.MySimpleFormRegionManifest Return MySimpleFormRegionManifest

End Function

5. Implement GetFormRegionlcon by adding the code in Listing 14.38. This function is called when Outlook is ready to load the form region icon, and it returns the embedded form region icon file.

Listing 14.38. Returning the embedded form region icon file

Public Function GetFormRegionIcon( _ ByVal FormRegionName As String, _ ByVal LCID As Integer, _

ByVal Icon As Outlook.OlFormRegionIcon) As Object _ Implements Outlook._FormRegionStartup.GetFormRegionIcon

' There are no custom icons so just return nothing. Return Nothing

End Function

0 0

Post a comment