471,616 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,616 software developers and data experts.

2nd Post, Tabbing Problem in Interop Component

I am working on an application originaly developed in VB5.0/6.0 that has a
mdi parent/child forms. I created a VB.net 2003 program with a couple of
forms, compiled it as a dll and registered it as a com interop assembly. I
call this application from a menu item on the mdi parent form in the vb5/6
application. The result is that the user can use my dot net form by selecting
the appropriate menu item from the original vb5/6 program. The problem is
that once in a while, the tab key will quit working. The only way the user
can change fields on the dot net form is to click on the with the mouse. If I
quit and restart the main vb5/6 program and restart it then it will work for
a little while. I found ms article #145566 that seems to be close to my
problem but the fix is not workable in my situation. Any ideas appreciated.
Thanks
Jul 21 '05 #1
1 1408
To make it work you have to create another GUI thread in your .NET assembly
and launch your form from that thread.

1. Create another thread.
2. In the thread function call Application.Run(new MyForm())
where MyForm is your .NET visual basic form.

Sorry, I don't know visual basic syntax. The above is the syntax for C#.

"Mike" wrote:
I am working on an application originaly developed in VB5.0/6.0 that has a
mdi parent/child forms. I created a VB.net 2003 program with a couple of
forms, compiled it as a dll and registered it as a com interop assembly. I
call this application from a menu item on the mdi parent form in the vb5/6
application. The result is that the user can use my dot net form by selecting
the appropriate menu item from the original vb5/6 program. The problem is
that once in a while, the tab key will quit working. The only way the user
can change fields on the dot net form is to click on the with the mouse. If I
quit and restart the main vb5/6 program and restart it then it will work for
a little while. I found ms article #145566 that seems to be close to my
problem but the fix is not workable in my situation. Any ideas appreciated.
Thanks

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by DotNetMania | last post: by
1 post views Thread by Craig | last post: by
1 post views Thread by Shiro | last post: by
3 posts views Thread by Dustin van de Sande | last post: by
10 posts views Thread by jp | last post: by
3 posts views Thread by =?Utf-8?B?U0Q=?= | last post: by
1 post views Thread by XIAOLAOHU | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.