Hi, I have been able to create an interop UserControl in VS08 with the toolkit, and everything seems to work perfectly except this one minor issue:
my usercontrol has a ToolStripButton. on the click event of the ToolStripButton, i raise a custom event, ToolClicked. I handle this is VB6 code, and show a second form modally. When this second form appears, the first click anywhere on this form is ignored. I noticed that the ToolStripButton's border stays "hovered" or "focused" until after the first click on my modal form. One other thing that I noticed is that if I show a .Net form from VB6 code in response to the same ToolClicked event, it works fine.
repro steps:
1. in VS08, create new VB6 Interop UserControl project.
2. add a ToolStrip to the user control
3. add a ToolStripButton to the ToolStrip
4. in code for the UserControl, declare an event; Public Event ToolClick()
5. in the click event of the ToolStripButton, raiseevent the event; RaiseEvent ToolClicked()
6. build the project
7. in VB6, create a new Standand EXE project
8. in the Components dialog check the interop usercontrol
9. add a Form, Form1, and draw the control on the form
10. add another form, Form2, and add a button.
11. in the button's click event call Me.Hide
12. back on Form1, in code, select the ToolClicked event of the usercontrol
13. add the following code to show Form2 modally:
Dim frm As New Form2
frm.Show vbModal, Me
14. run the project, and click the button on the ToolBar.
15. notice that the first click on the button in Form2 is ignored, and after the first click the appearance of the ToolStripButton returns to "unfocused"