Need VB.net example for outlook add in

S

S0lidAcid

I have been trying to get the basic functionality of a com add in for
outlook for a long time. Can someone give me the code/link/zip of a
basic com add in that has a button on mail items? (Reply / foward /
new ) and when you click on the button it just shows a msgbox? I
should be able to do what I want from there. I have gotten a toolbar
from microeye but it doesnt work outside of the contacts page, or
atleast as i've tried to edit it. The code from msdn is a standard
toolbar and does not show how to use the inspector class.

I am running VB.net 2003, and the com add in can be for outlook 2000 or
2003 whichever is easier.

Thanks,
Tim
 
K

Ken Slovak - [MVP - Outlook]

I don't know of any addins specifically like that, but you can review the
..NET addins listed on www.outlookcode.com to see if any meet your needs.

If you're referring to the ItemsCB template (VB 6) from www.microeye.com the
same principles apply to any item type. You just need to either not check
for Inspector.CurrentItem.Class or better test for .Class <> olStickyNote.
Notes are brain dead and should never have anything added to them.

Of course to handle any specific item events you'd need handlers for every
type of item you intend to handle.

For an example of an Inspector wrapper in VB 6 that adds a button see
http://www.slovaktech.com/code_samples.htm#InspectorWrapper
 
S

S0lidAcid

The microeye from outlookcode.com works, but it only adds it to the
main commandbar / standard toolbar. I would like to have a button on
the mailitem type, but I need to use the inspectorclass somehow and
thats where I am stuck
 
K

Ken Slovak - [MVP - Outlook]

The Inspector wrapper example I pointed you to on my Web site adds a button
to an Inspector.
 
S

S0lidAcid

I appreciate your code, but I am still unsure of where to put the code.
I tried putting it in the existing microeye code, but I got several
errors and am sure I am not at the correct 'starting point' in the
code. I suppose I will need to buy a vb.net book on outlook to get
this simple button going as it seems asking for / finding a zip file
with a simple button added into outlook is turning out to be a tall
order.

Thanks,
Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top