Visio ActiveX Drawing Control in .NET

D

Dave Taylor

I'm using the Visio 2003 ActiveX drawing control in a VB.NET application.
If another control in my application has the focus (say a ComboBox for
example), and I click on the Drawing Control, the LostFocus/Leave events for
the ComboBox do not fire. This behavior appears to be unique to the Visio
ActiveX control as other ActiveX controls (for example, I used an old VB6
RichTextBox control to test) work as expected. Am I missing something with
regard to the Visio control? Or have others run into this same problem? Any
work-around?

Thanks

Dave Taylor
 
D

Dave Taylor

Steps to recreate the problem:

1) Drop a Visio ActiveX drawing control on a Windows form
2) Drop a ComboBox on the Windows form
3) In the ComboBox1_Leave event, put a call to MessageBox("Leave Event
Fired")
4) Run the program
5) Click on the combobox
6) Click on the ActiveX control, the messagebox appears, click OK
7) Click the ComboBox again
8) Click on the ActiveX control again, this time no message box appears
(i.e. the Leave event does not fire)

HELP! :)

Thanks
Dave Taylor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top