|
-
Jun 29th, 2001, 06:55 AM
#1
Thread Starter
Hyperactive Member
outlook and active x
Hi,
I have a home page attached to an outlook public folder , and the web page has an active x control on it.
Is there anyway possible that i could have a button on the active x control , like , View Documents , that when clicked would remove the web page completely and just display the normal out look panes which contain the mail items and preview pane.
If anyone has any ideas i would be grateful.
Thanks
-
Jul 8th, 2001, 01:10 PM
#2
Outlook
Hi,
DaveR
What you want is possible.
Create a reference to Outlook in your ocx project.
Now follow these steps:
1.Create outlook application object (in the general declarations)
Private pv_olApp as new Outlook.Application
2.Create the NameSpace object (in the general declarations)
Private pv_olNs as Outlook.Namespace
3.Create a folder object (in the general declarations)
Private pv_olFolder as Outlook.MapiFolder
4. Now set the objects for example in the Command1_Click() section
set pv_olNs =pv_olApp.GetNameSpace("MAPI")
set pv_olFolder =pv_olNs.GetDefaultFolder(olFolderInbox)
########################################
(for this test we will use your inbox as the folder on which the
homepage is going to be removed)
########################################
pv_olFolder.WebViewOn=False 'Clears the checkbox on the folders property page.
pv_olFolder.WebViewUrl="" 'Clears the textbox which holds the homepage url on the folders property page.
########################################
pv_olFolder.WebViewOn=False does the trick of not showing the homepage.
########################################
This is all just click another folder and then your inbox again and you will see no homepage anymore.
I did not find a refresh method or something yet but when i do i'll let you know.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|