![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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! |
#2
|
|||
|
|||
![]()
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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
custom form | Charlie | Outlook - Using Contacts | 5 | March 8th 06 04:24 PM |
Custom Form Frustration | Frustrated to the MAX! | Outlook - Using Contacts | 4 | February 14th 06 06:35 PM |
Using a custom contacts form | kwilson | Outlook - Using Contacts | 2 | February 2nd 06 03:27 PM |
Custom Form One-Off Fix? | Boyd | Outlook - Using Forms | 3 | January 11th 06 04:22 PM |
Custom Form One-Off Fix? | Boyd | Outlook - Using Forms | 1 | January 9th 06 07:05 PM |