473,326 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How to derive from Outlook.Inspector in c#?

Hi,

I try to build an Outlook Plugin. After having some trouble with the
Inspectorevents I'm trying to build a wrapper for the Inspectorclass.

However I'm stuck again after letting VS.Net 2003 create the stubs for the
Inspector-Interface.

When I try to compile the new Wrapperclass it says

"An explicit interface implementation of an event must use property syntax"
for both lines

"event Outlook.InspectorEvents_10_CloseEventHandler
Outlook.InspectorEvents_10_Event.Close;"

and

"event Outlook.InspectorEvents_10_ActivateEventHandler
Outlook.InspectorEvents_10_Event.Activate;"
When I change it to
"event Outlook.InspectorEvents_10_CloseEventHandler Close;"
it says
"The class 'HelloWorld.InspectorWrapper' already contains a definition for
'Close'"
How can I get my hands on "Outlook.InspectorEvents_10_Event.Close"?

Any Hint greatly appreciated
------ cut here ----
using System;

namespace HelloWorld
{
/// <summary>
/// Summary description for InspectorWrapper.
/// </summary>
public class InspectorWrapper : Outlook.Inspector
{
public InspectorWrapper()
{
//
// TODO: Add constructor logic here
//
}

#region _Inspector Members

public void Close(Outlook.OlInspectorClose SaveMode)
{
// TODO: Add InspectorWrapper.Close implementation
}

public void Activate()
{
// TODO: Add InspectorWrapper.Activate implementation
}

// ...
#endregion

#region InspectorEvents_10_Event Members

public event Outlook.InspectorEvents_10_BeforeSizeEventHandler BeforeSize;

public event Outlook.InspectorEvents_10_BeforeMaximizeEventHand ler
BeforeMaximize;

public event Outlook.InspectorEvents_10_BeforeMoveEventHandler BeforeMove;

event Outlook.InspectorEvents_10_CloseEventHandler
Outlook.InspectorEvents_10_Event.Close;

public event Outlook.InspectorEvents_10_DeactivateEventHandler Deactivate;

event Outlook.InspectorEvents_10_ActivateEventHandler
Outlook.InspectorEvents_10_Event.Activate;

public event Outlook.InspectorEvents_10_BeforeMinimizeEventHand ler
BeforeMinimize;

#endregion
}
}


Nov 16 '05 #1
0 3763

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brian | last post by:
Hi all, So, I posted a question about a DOM inspector for IE (mozilla comes with one, which is pretty nice). Since I got no reply, I wrote my own, which works pretty well. It is laid out...
3
by: Marcin Kowalewski | last post by:
Hi I've got a stupid problem with code below : using System; using System.Drawing; .... public class CsrcImage :Image { public CsrcImage() { //
0
by: Richard | last post by:
Hi, I've a problem with an outlook add-in written in vb.net. I inserted a button to the mail inspector (works fine) that should open a crystal report. BUT, just inserting a crystal report...
10
by: John | last post by:
Hi When I open a new outlook email from vb.net, sometimes outlook is very slow to appear or occasionally outlook freezes completely. I am targeting mixed office2000/xp environments so I am...
0
by: Joel | last post by:
Creating an Outlook Add-in with VB.NET to automatically save messages for users. The problem occurs if I create a reference (withevents) to the MailItem Object when a new Inspector object is...
0
by: guilligan.geo | last post by:
Hello, I'm trying to create an addin for Outlook 2002 using the one provided in the demo of win32com as a starting point. I've been able to do my addin and test it if I go the "standard" way...
0
by: Water Cooler v2 | last post by:
How do you check for the existence of new/unread email in Microsoft Outlook 2002 using the Outlook Object Model with COM Interop, and not using MAPI/CDO to go to the Exchange server? For e.g...
3
by: Jeff | last post by:
I am trying to send emails from my application (not using a plugin, that will come later), I can create an email and add attachments. I can fill in the body etc. Word works for the editor. So...
1
by: Przemyslaw Koprowski | last post by:
Hi all, Imagine you have a class, containing two methods with the same name (say 'get'), but one being an inspector the other mutator - the class contains a kind of data structure (vector in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.