index > Visual Studio Tools for Office > ItemAdd Event Destination folder.

ItemAdd Event Destination folder.

Currently, i have a codes that monitor the itemAdd event for various folder. How do i know which folder is triggering this event?


Chee Yong

If you are using C#, the easiest way is to use anonymous delegates:

myFolder.ItemAdd += delegate (object item)

{

// the variable myFolder is available here.

};

The solution in VB is along the same lines, but is a little more complicated - let me know if you need sample code for VB.

------

This post is provided as-is and confers no rights.

Iouri Simernitski - MSFT
reply 2

You can use google to search for other answers

 

More Articles

• Comments on VSTO Security Model
• Populate pivot table with pre selected items.
• Selection of ListObject associated with XmlMap
• Serious Error while debugging
• saving documents
• building solution containing VSTO on CruiseControl.NET?
• How could i develop Office Add-ins compatible with Office 2000?Of...
• Selecting rows from an Excel Sheet throws DISP_E_TYPEMISMATCH Exc...
• Customization assembly could not be loaded, please help!
• DLL VB express 2005 in Excel
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• managed xll can not write to Excel cells
• VSTO CTP June "V3": Excel - Us
• Application-level smart tags using VSTO
• Export Data to Excel
• Excel UDF Description
• Binding Pictures/Images in Word Documents
• Hiding Groups In A Tab
• Error occurred when undo (Ctrl+Z) operat
• Selection of ListObject associated with
• Visio 2003 : Save as web page bug
• Error when Implement the DragDrop
• getting data from an excel chart
• Help! 0x800a16c1 - Object has been deleted
• Getting events when the contents of a Wo
• Difficult to Layout InfoPath Forms

Hot Articles

• Text / MS Word in .net and printing - an
• Excel SaveAs not working properly
• Problem with TaskPane initialization - p
• web references with VSTO
• NO LUCK plz HElp
• How to use VSTO to replace word automati
• How is that called ? And how can I acces
• Issue with the menu "Microsoft Offi
• Open action-pane from any existing word
• CircleInvalid and clearcirles
• Document-level VSTO in Access 2007
• ActionsPane and IDTExtensibility2
• Setting the style of the current XMmlNod
• Custom font colors
• Do you have to have Office installed?

Recommend Articles

• Will Intellisense show all members even
• Microsoft Office Projects Not Viewable
• Suggestion For Future VSTO Release
• InnerObject property is not available an
• How to install VSTO on VS2005 Profession
• Question re the CRM Integration Add-In S
• Programming Excel - Data Analysis and Re
• How do you obtain the paragraph numbering?
• Export / Save Workbook without Customiza
• How to cancel a delete of a folder ?
• Shared AddIn Deployment problem
• Word OCX Control
• WebService and VSTO
• Cells.NumberFormat - not standart (from
• Bookmarks in existing Word document form