![]() |
How to handling Custom Form Control Event in VB Com Add-In?
How to handling Custom Form Control Event in VB Com Add-In?
I have a ListBox in my custom Form for Outlook. I cannot use WithEvents with ListBox object! : ( Private Sub objListBox1_Click() MsgBox ("message") End Sub Please help me! |
How to handling Custom Form Control Event in VB Com Add-In?
In the com addin you could declare the listbox withevents. Do that.
Then take the object reference of the listbox existing on the custom form. For eg: you have ListBox1 on custom form In com Addin in General Section dim withevents objMyListbox as ListBox In Com addin in new inspector event or any other event where you have access to the custom form: Set objMyListbox = Item.GetInspector.ModifiedFormPages("General").Con trols("ListBox1") Here, General is the page name and Item referes to the current item. |
All times are GMT +1. The time now is 05:27 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com