473,544 Members | 420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1486
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
1145
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 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...
2
15254
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 "Interop.QuartzTypeLib.dll" is free component.. could i use this to commercial software?
1
8617
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. In this class is a single public method that returns the string "Hello from C sharp". My VB6 ActiveX DLL references the C# DLL...
0
973
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 to the C# project and everything compiles and runs. I can debug both the C# code and the VB code in the VS.NET IDE. Now, on occasion, I would...
1
2274
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 fine, but problems occur when I need to reference a thirdparty's component. In my case I am talking about Interop.ShDocVw and AxInterop.ShDocVw. If
1
234
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 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...
3
6218
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 I've added a reference to the COM Microsoft.Word 11 Object library and set the property Copy Local to true which created an interop assembly in my...
10
1900
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
9901
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 registered properly. When opened with OLE/COM Viewer the component throws up an error saying: "CoGetClassObject failed. The system cannot find...
0
7368
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7614
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7777
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7384
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5916
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4922
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3420
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3414
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
671
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.