473,324 Members | 2,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 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 1471
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike | last post by:
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...
2
by: DotNetMania | last post by:
DirectShow MediaPlayer in C# http://www.codeproject.com/cs/media/directshowmediaplayer.asp?df=100&forumid=4399&select=820191#xx793428xx i saw this article and then i wonder if...
1
by: Craig | last post by:
I am having problems getting an ActiveX DLL written in VB6 to call a method in a C# class library component. My C# DLL is called CSharpProject.dll and contains a public class called CSharpClass....
0
by: Steven Kilby | last post by:
I have a component (inproc dll) written in VB6. I have a client written in C#. If I compile the component to native code everything works fine. I add the necessary type library for my component...
1
by: Shiro | last post by:
Hi I have read the various postings relating to Interop strong name signing and cannot find an example similar to mine. I have stringly named my AxInterops/Interops and they all work just...
1
by: Mike | last post by:
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...
3
by: Dustin van de Sande | last post by:
I'm developing a ASP.NET 2.0 web application which exports and imports Word documents. The functionality is implemented in a DLL project which is referenced by the web application. In the DLL...
10
by: jp | last post by:
I have multiple PMW widgets (EntryFields, ScrolledField etc), how can I skip over these widgets when using the tab key? Thank you, John
3
by: =?Utf-8?B?U0Q=?= | last post by:
Hi, I'm using the the MSDN sample "COM Interop Part 2 Sample" (CSharpServerWithCOMClient.sln). The C# COM component gets registered when the solution is built. Somehow the component doesn't get...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.