MDI forms - pressing on toolbar doesn't start the enter or activate event

A

ari

I have an MDI form with a listview and a toolbar.

I have 2 instances of this form running at once - lets call them A and
B. If I am in A, and I click on the listview control in B, then B's
enter event is triggered (but not its activated)

However, if I am in A, and I click on a button on the toolbar in B,
then neither the activate or the enter event is triggered, even though
B's toolbar event is triggered. Even more curious, A remains the active
window - if I then use the up/down buttons, then the selected row of A
changes, when I would have expected B's to change.

Does anyone have an explanation or(even better) workaround? I really
need the enter event to be triggered. (My application is far more
complex than this - I am talking about dozens of forms, so putting
extra code on every forms toolbar is a problem.)

I am using microsoft.net framework 1.1, visual studio 7.1.3088
 

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