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

Listing 14.36. Returning the embedded form region file

Public Function GetFormRegionStorage( _ ByVal FormRegionName As String, _ ByVal Item As Object, _ ByVal LCID As Integer, _

ByVal FormRegionMode As OlFormRegionMode, _ ByVal FormRegionSize As OlFormRegionSize) _

As Object Implements _FormRegionStartup.GetFormRegionStorage

' Read the embedded .ofs file out of the assembly. Dim MySimpleFormRegion_OFS As Byte() = _

My.Resources.MySimpleFormRegion Return MySimpleFormRegion_OFS

End Function

0 0

Post a comment