Re: CommandbarCombobox problem



Pick one or the other of the 2 events to respond to, or set a flag to tell that the form was already opened in one event, clear the flag when the form closes. If both event handlers check that flag it would prevent both from opening the form.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Hrishi" <Hrishi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:6633A2B7-9C00-435D-994A-199149203172@xxxxxxxxxxxxxxxx
Hi,

I am developing a COM add-in using C#. I have a CommandbarCombobox and a
button on my outlook Add-in. I am opening a windows form when a user clicks
on the button. I have implemented the CommandbarCombobox change event and
opening the same windows form in the change event.
My problem is that, When user types in something into the combobox and tabs
out and hits enter on the button, two forms are opened. First one is opened
because of the button click event and the second one is opened because the
change event of the CommandbarCombobox is getting fired.

I just want to open one form for the button click event.

Any hints on how how to go about this?

Thanks,
Hrishi


.