Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / April 2005

Tip: Looking for answers? Try searching our database.

Property Pages

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dedejavu@hotmail.com - 27 Apr 2005 23:57 GMT
Hi all,
I can't seem to get my property page to show.  When I make an activex
control I get to see the tab, but get the dreaded "unable to display"
message. I am using Ken Slovak's PhoneChanger as an example (thank you
so much for sharing that with the rest of us Ken).  Ken's works, mine
doesn't; it must be something simple, but I just can't see it.  Mine
works in a web page.  Any help would be greatly appreciated.
Thanks
Pachydermitis

OCX CODE:

Option Explicit

Implements Outlook.PropertyPage
Dim objPPSite As Outlook.PropertyPageSite

Private Sub Command1_Click()
  MsgBox "hi"
End Sub

Private Sub PropertyPage_Apply()
  On Error Resume Next
  Call UserControl_InitProperties
End Sub

Private Property Get PropertyPage_Dirty() As Boolean
  On Error Resume Next
End Property

Private Sub PropertyPage_GetPageInfo(HelpFile As String, HelpContext As
Long)
  On Error Resume Next
End Sub

Private Sub UserControl_InitProperties()
  On Error Resume Next
  Set objPPSite = Parent
End Sub

Private Sub UserControl_Terminate()
  On Error Resume Next
  Set objPPSite = Nothing
End Sub

ADD-IN CODE:

Private Sub oApp_OptionsPagesAdd(ByVal Pages As Outlook.PropertyPages)
 On Error Resume Next
   Pages.Add "Settings.ctlSettings", "My Stuff"
   Pages.Add "PropertyPage.ctlPhoneChanger", "Phone"
End Sub
Ken Slovak - [MVP - Outlook] - 28 Apr 2005 15:01 GMT
Answered in developer.outlook.addins.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi all,
> I can't seem to get my property page to show.  When I make an activex
[quoted text clipped - 48 lines]
>    Pages.Add "PropertyPage.ctlPhoneChanger", "Phone"
> End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.