A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to handling Custom Form Control Event in VB Com Add-In?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 10th 06, 06:49 PM posted to microsoft.public.outlook.program_forms
Raphaël ZHOU \(Jadiam\)
external usenet poster
 
Posts: 1
Default 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!


Ads
  #2  
Old January 11th 06, 07:31 AM posted to microsoft.public.outlook.program_forms
Sachin Sancheti
external usenet poster
 
Posts: 7
Default 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.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 05:37 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-2025 Outlook Banter.
The comments are property of their posters.