V
Victor Heijke
I made an Outlook addin with Visual Basic.Net (2003) and VSTO.
I cannot get the Outlook Options panes to work. Here is what I did:
Created a UserControl : added a textbox to it and the line
Implements Outlook.PropertyPage (directly under the Inherits)
On the TextChanged event of the textbox has the following code
Dim myPropertyPageSite = Parent
gblDirty = True
myPropertyPageSite.OnStatusChange()
and nothing more.
The pane is added in Connect.vb (I used a withevents on the
Outlook.applicatopn objOLApp) with:
Private Sub objOLApp_OptionsPagesAdd(ByVal PropPages As
Microsoft.Office.Interop.Outlook.PropertyPages) Handles
objOLApp.OptionsPagesAdd
Try
Dim ctrOptionsPage As New ctrOptions
PropPages.Add(ctrOptionsPage, "More options")
Catch ex As SystemException
Debug.WriteLine("OptionsPagesAdd Exception: {0}", ex.Message)
End Try
End Sub
The pane is added, but no title is availble (it says untitled)
Second problem is that the parent object in the User Control is nothing and
therefore the myPropertyPageSite is unavailble.
Who can help me.
Victor Heijke
I cannot get the Outlook Options panes to work. Here is what I did:
Created a UserControl : added a textbox to it and the line
Implements Outlook.PropertyPage (directly under the Inherits)
On the TextChanged event of the textbox has the following code
Dim myPropertyPageSite = Parent
gblDirty = True
myPropertyPageSite.OnStatusChange()
and nothing more.
The pane is added in Connect.vb (I used a withevents on the
Outlook.applicatopn objOLApp) with:
Private Sub objOLApp_OptionsPagesAdd(ByVal PropPages As
Microsoft.Office.Interop.Outlook.PropertyPages) Handles
objOLApp.OptionsPagesAdd
Try
Dim ctrOptionsPage As New ctrOptions
PropPages.Add(ctrOptionsPage, "More options")
Catch ex As SystemException
Debug.WriteLine("OptionsPagesAdd Exception: {0}", ex.Message)
End Try
End Sub
The pane is added, but no title is availble (it says untitled)
Second problem is that the parent object in the User Control is nothing and
therefore the myPropertyPageSite is unavailble.
Who can help me.
Victor Heijke