View Single Post
  #3  
Old August 5th 08, 04:07 PM posted to microsoft.public.outlook.program_vba
masani paresh[_2_]
external usenet poster
 
Posts: 84
Default How to hanlde ListBox double click event

Ok Ken, I have added one more button to get the selected value. But none of
following working

MsgBox Item.GetInspector.ModifiedFormPages("Find Conference
Room").Controls("ListBox1").Items.Count

MsgBox Item.GetInspector.ModifiedFormPages("Find Conference
Room").Controls("ListBox1").SelectedItem.Value

Could you tell me whats the wrong here.

Thanks,
Paresh

"Ken Slovak - [MVP - Outlook]" wrote:

Most controls placed on an Outlook form will only fire one event, even if
they expose additional events in their object model. In the case of a list
box you get the Click() event. If a multi-select list box you don't even get
that.

You read the selected value by looking at the Value property of that
control. You can also handle the Item.CustomPropertyChange() to find when a
bound list box value changes.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"masani paresh" wrote in message
...
Hi Friends,

I want to handle double click event on ListBox selected item so that it
should get invoked when user double clicked on some item. Also please let
me
know how to get which item has been selected.

The following method is not working:

Sub ListBox1_DoubleClick
MsgBox "Double clicked"
End Sub

Thanks,
Paresh



Ads