vb to c# for Outlook add-in.

Not open for further replies.

Jose Campa

Outlook version
Outlook 2016 64 bit
Email Account
Office 365 Exchange
I have a VB script (below) but I am trying to create a add-in for Outlook now. How do I convert the code so it works? Is there a converter or something?

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

On Error Resume Next

If InStr(Item.Subject, "[Encrypt]") = 0 Then
Prompt$ = "This message has not been encrypted. Are you sure you want to send it?"
If MsgBox(Prompt$, vbYesNo + vbExclamation + vbMsgBoxSetForeground, " ENCRYPTION CHECK") = vbNo Then
Cancel = True
End If
End If

End Sub
Not open for further replies.
Thread starter Similar threads Forum Replies Date
G How to add a folder shortcut to outlook quick access toolbar? Using Outlook 6
G Add to Outlook Contacts - Point to non-default contacts folder Using Outlook 0
O Outlook tasks - Add text column with multiple lines Using Outlook 3
D Add date next to day name in Outlook Today calendar view Using Outlook 1
D iCloud Add-in not working in Outlook 2013 and Outlook 2016 After Windows Upgrade & iCloud Upgrade Using Outlook 2
L Tired of Outlook disabling Adobe PDF Creator add-in Using Outlook 1
Mark Foley Cannot enable add-in in outlook 2010 Using Outlook 0
iwshim outlook 2013 - I cannot see the "Manage Add-ins" Using Outlook 2
A Add to Outlook Contacts from email - default view Outlook VBA and Custom Forms 1
P Add a contact to the New Task in Outlook 2016 Using Outlook 2
O Outlook on Android - add BCC Using Outlook 2
J Execute Add-In Button from VBA Outlook 2016 Outlook VBA and Custom Forms 1
R Outlook add-in to create new contact from an email. Using Outlook 0
A add birthday to outlook contacts Using Outlook 1
Tanja Östrand Outlook 2016 - Create Macro button to add text in Subject Outlook VBA and Custom Forms 1
C Need VBA code to automatically save message outside outlook and add date Outlook VBA and Custom Forms 1
R Add Exchange Account to existing POP3 Outlook 2007 Profile Using Outlook 0
O Outlook 2016 follow-up flags--how can I add dates? Using Outlook 1
J VB6 Add-in fails to load in Outlook 16 - message useless Outlook VBA and Custom Forms 4
Diane Poremsky Disable Outlook Add-ins (Apps) New Slipstick.com Articles 0
Diane Poremsky The Best Outlook Store Add-ins Contest New Slipstick.com Articles 0
Diane Poremsky Add to Outlook Contacts Bug (Fixed) New Slipstick.com Articles 1
Diane Poremsky Add a Charm to Outlook Meetings New Slipstick.com Articles 0
N Get the seconds with userproperties.add method VBA Outlook Outlook VBA and Custom Forms 4
D Outlook Add-on for Exchange Spam Management? Exchange Server Administration 2
O Add private notes or comments to Outlook meeting invite Using Outlook 4
J Outlook calendar...How to add an event or appointment without a border around it? Using Outlook 9
iwshim Can I add an Unsubscribe link to Outlook outgoing email? Something like this? Using Outlook 1
Mark Klaassen HOw to keep Outlook iCloud add-in enabled Using Outlook 4
Tech Checkers Make Outlook add Contact Card Address in Location Field based on Appointment Subject Name. Using Outlook 2
B No email accounts in outlook. Cannot add email Using Outlook 5
A iCloud add-on for Outlook: Reminder for new appointment is set to 'None' by default. How to change? Using Outlook 6
T Cannot successfully add gmail IMAP account to Outlook 2013. Using Outlook 1
D Preventing users to disable an Outlook Add-in Using Outlook.com accounts in Outlook 5
K VBScript Outlook, add attachment Outlook VBA and Custom Forms 1
iwshim mail merge and add the contact picture outlook 2013 Using Outlook 3
M Predefined Outlook Fields not available to add into a BCM record BCM (Business Contact Manager) 0
B Add-in "always enabled" but Outlook 13 won't open Using Outlook 7
R Outlook 2013 People Pane - Where is the "Add" button for social networks? Using Outlook 4
V Outlook 2013 - iCloud add-in creates issues Using Outlook 4
Wotme code to run outlook add-in Using Outlook 1
L Outlook 2007 does not start with Apple iCloud-Add-In activated Using Outlook 2
O Add please, Outlook Autocomplete working per account in multi profile ! Outlook Wishlist 5
L Outlook 2007 Macro to Add Text to a Contact Field Using Outlook 10
M Add custom locations to Outlook Forms "Look In:" drop-down list Using Outlook 5
D Outlook Add-In That Calculates Time Based on Area Code Using Outlook 8
G Microsoft Outlook 2010 Add-On Using Outlook 2
G Adding 3rd-Party Add-In to Home Ribbon in Outlook 2010 Using Outlook 1
A "Microsoft Exchange Add-In" (UmOutlookAddin.dll) + Outlook Security Form ... Using Outlook 4
A Office Home & Student. WHich Outlook to add Using Outlook 1
Similar threads