Visual Basic Interop and Upgrade,19 - Visual Basic,
Recent update: 2008-3-21

Updating Report Links in MS-Access database.

622 byte By AndyRogers at 2008-3-7
Hi, I am a new bee to .NET. I have a Ms-Acess Database which is protected by password. This table contains tables, queries and reports. One more database contains links(references to the first database). If any table structure is changed in the first table, in order to update links I need ...

Updating Report Links in MS-Access database.

637 byte By AndyRogers at 2008-3-6
Hi, I am a new bee to .NET. I have a Ms-Acess Database which is protected by password. This table contains tables, queries and reports. One more database contains links(references to the first database). If any table structure is changed in the first table, in order to update links I need to ...

VB6 interop to .NET webservice client

775 byte By tpollard at 2008-3-5
I have generated a C# client .dll for a .NET webservice. I did this by adding a web reference in VS and edited the .cs file. I have added interfaces and attributes for COM interop. I have it registered on a Win2k machine and cannot access it with VB6. Of course VB6 Intellisense works fine (I'm ...

BIG error

4745 byte By DarkAngel at 2008-3-3
OK, I'm gettin this error 44 and I don't know what to do.Error 44 The "ResolveComReference" task failed unexpectedly.System.SystemException: The type library importer encountered an error during type verification. Try importing without class members. > System.MissingMethodException: Method ...

"TrollKit 1.0" - Not quite "Patterns & Practice" Material

2731 byte By J.C. at 2008-3-1
I am sure the "Patterns & Practice" team @ MS are squirming about this InteropForms Toolkit 1.0. Honestly, I am a little disappointed in the emergence of this toolkit. Ideally MS should’ve created a migration path process and set of patterns to allow the developer to understand ...

Tried it , seems to work great for modal forms. but mdi forms ?

1294 byte By PaulYuk_MS at 2008-2-28
Hi VB Community Members,We wanted you to know about the release of the new Interop Forms Toolit 1.0. In a nutshell the toolkit makes it easy to create Windows Forms in VB.NET and then add them to an existing VB6 application. This makes it much easier to extend your VB6 app gradually and ...

Can not register for COM Interop a dll vb 2005 application

984 byte By rtejada at 2008-2-27
Hi everybodyI migrated a VB 2003 project to VB 2005. It has as main output a dll library which I need to register for COM interop. The application builds fine until I check the compile options "Register for COM interop" .I get the following errorError 1 Cannot register assembly ...

Call a vb.net form from a vb6 mdi Container

716 byte By Steve1965 at 2008-2-26
Am i overlooking something ?I followed the instructions and created a . net interopForm project.Referenced everything in VB6A vb.net form expects the property MdiParent to be set ...This property is not available to set , will i get there by adjusting the interface of iiForm ?Any suggestions ...

Why Not C#?

732 byte By LeonLangleyben at 2008-2-25
First of all thanks. It is a great toolkit. Well done.I have existing VB6 application and the toolkit will be very helpful. Bu I am prefer C# now. So why not expand Add-In to support C# code generation, and add some C# templates. I did some reverse engineering to achieve this. You can see ...

Just in: Interop Forms Toolkit 1.0 for gradual VB6 to VB.NET upgrades!

1294 byte By PaulYuk_MS at 2008-2-24
Hi VB Community Members,We wanted you to know about the release of the new Interop Forms Toolit 1.0. In a nutshell the toolkit makes it easy to create Windows Forms in VB.NET and then add them to an existing VB6 application. This makes it much easier to extend your VB6 app gradually and ...

set_textmatrix - MsFlexGrid to DataGrid conversion

3246 byte By hazz at 2008-2-23
Is there an equivalent? The designtime IDE doesn't know what to do with, for example, AxMSFlexGridLib.DMSFlexGridEvents_KeyDownEvent Private Sub MSFlexGrid1_DblClick(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MSFlexGrid1.DblClickand I don't understand ...

Microsoft Interop Forms Toolkit 1.0

1380 byte By PaulPClementIV at 2008-2-22
Microsoft Interop Forms Toolkit is now available:This toolkit helps you bring the power of .NET to your existing VB6 applications, by allowing them to display .NET WinForms from within the same application. Instead of upgrading the entire code base, these applications can now be extended one ...

Upgrade failed

216 byte By IPM at 2008-2-22
<P>I am trying to upgrade my VB6 project to VB2005 and I am getting an error "Upgrade failed: Exception occurred: General error accessing file "C".</P> <P>Does anyone know what is this about and how to fix it? </P>

Add Flash9 Control to VS2005

1122 byte By UncleK at 2008-2-21
I added Flash9.ocx(c:\program files\system32\macromed\flash\) to vb2005toolbox, when I draw the "Shockwave Flash Control" to form, there comeserrors: * Could not resolve dependent COM reference "stdole,Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". * ...

Register dlls

94 byte By suneelb2b at 2008-2-20
How to register vb.net dll in windows system. And how to register that .Dll in another system.

Distributing .NET assembly for interop with VB6

645 byte By Tireless_Developer at 2008-2-20
Greetings.I have a VB6 client/server application, that needs to interop with a .NET assembly.I have all required assembly files (.dll, .pdb, .tlb) in my PC. In my development box, to make call from vb6 to .NET assembly , using regasm command I registered the typelibrary and everything works ...

Can't Get VB6 Serv Pak 6 to install in Vista RC1

563 byte By CourtneyGoodin at 2008-2-20
Has anyone gotten VB6 Service pack 6 to install in VISTA RC1I tried and it errors out with some cryptic error about a missing file and quits.VB shows no sp installed and programs that were created with SP6 installd on XP will not run in the API on Vista RC1 with an error message "Component ...

Is random access possible with My.Computer.FileSystem?

705 byte By ScotchTape at 2008-2-19
I have a dotNet 2003 VB program that uses random access files, as in:FileOpen(FNum, FName, OpenMode.Random, OpenAccess.Read, OpenShare.Shared, Len(FRec))After converting this program to VS dotNet 2005, I see several notes in the MSDN documentation and in the conversion log that say that ...

From .Net 2003 to VS2005

703 byte By rosyou at 2008-2-18
Our project has got some user controls in the old VB6 Version, in the form of .ocx. When upgrade to VB.net 2003, they were changed to interop&Axinterop dlls. Now I hope to open the project in VS2005, and i've done upgrade following the upgrade guidance.But after upgrading, there were some ...

Print text to a form

208 byte By Rekar at 2008-2-17
IN Vb 6.0, using the Print command would print whatever text you put onto the form. Im wondering how you would do that same thing in VB2005 because apparently the command had changed... thank you

Using a dll created in .NET in VB6

509 byte By JLMontero at 2008-2-16
Hi other timeI created a dll in VB .NET that is gonna be used in an VB6 application, I used the Type Library Exporter to reference it in the VB6 application (the tbl file).Now i technically can enter to the methods of my dll. The problem comes when I run my VB6 application, in the point of ...

Diff. between VB6 Control Type and .Net Control Type

489 byte By Benin at 2008-2-15
Hi,In my VB6 application i am having a function which returns of type Control as follows, Private Function MyFunction(param1 As String, param2 As MyType) As ControlNow Inside this funtion I am calling .Net fuction, this .Net function returns of type Control (.Net), when i am trying to assign ...

Print text to a form

216 byte By Rekar at 2008-2-15
IN Vb 6.0, using the Print command would print whatever text you put onto the form. Im wondering how you would do that same thing in VB2005 because apparently the command had changed... thank you </span>

can't access projects data from vb6.0

171 byte By MrinmoyMondal at 2008-2-15
<span> Hi Hope some body can help with this: - I have just installed vb 6.0 and want to write an application that Access data from MS Projects. </span> </span>

convert visual interdev 6.0 project to visual studio 2005 vb.net project

735 byte By Lemon.oO0 at 2008-2-15
We have a big project created in visual interdev 6.0 that we need to convert to a Visual Studio 2005 vb.net project.Tried to just open the *.sln-file in vs 2005 that started the conversion wizard. After the "convertion" process (I assume it did not do much at all) had finished, I was ...

Error: "The object invoked has disconnected from its clients"

450 byte By Benin at 2008-2-15
Hi,When I am trying to do Controls.Add("progId") in my VB6 Application it is throwing me Error -2147417848 "The object invoked has disconnected from its clients". The progId I am using in the function is the ProgID of a COM Visible .Net user control. (That is registered ...

Types that cannot be Converted from VB6 to .Net

987 byte By Benin at 2008-2-14
Hi all,I have an Interface named "IMyInterface" declared in VB6. And I have a user control project in VB6, this user control implements the Interface "IMyInterface". Now I want to use the user control developed in VB6 in my new .Net Project. So I have added the reference of ...

Error opening Access 2000 database using Microsoft Access 11.0 Object Library

1084 byte By mstrecman at 2008-2-14
Hello,I get an Interop automation 91 object not set to an object reference error in my VB .NET windows application when launching an Access 2000 database on a workstation which has Office 2000 installed on it. I am using the Microsoft Access 11.0 Object Library within my VB .NET application to ...

Microsoft.Office.Core.dll Location

364 byte By Benin at 2008-2-13
Hi all,From where shall I get the "Microsoft.Office.Core.dll"?. I need "Interop.Microsoft.Office.Core.dll". I am trying to use tlbimp to generate the Interop.Microsoft.Office.Core.dll from the Microsoft.Office.Core.dll. Is that way correct? where will ...

Using a dll created in .NET in VB6

506 byte By JLMontero at 2008-2-13
Hi other timeI created a dll in VB .NET that is gonna be used in an VB6 application, I used the Type Library Exporter to reference it in the VB6 application (the tbl file).Now i technically can enter to the methods of my dll. The problem comes when I run my VB6 application, in the point of ...

From .Net 2003 to VS2005

711 byte By rosyou at 2008-2-12
Our project has got some user controls in the old VB6 Version, in the form of .ocx. When upgrade to VB.net 2003, they were changed to interop&Axinterop dlls. Now I hope to open the project in VS2005, and i've done upgrade following the upgrade guidance.But after upgrading, there were some ...

ByRef error though parameter is passed by ByVal

8162 byte By Krutika at 2008-2-11
I'm getting an error while trying to fill a grid (third party). The code is as follows:Public Sub FillTheGrid(ByRef one As String, ByRef two As String, ByRef three As String) Dim s As String Dim e As Short = 0 s = (one & Chr(9) & two & Chr(9) & three).ToString e = ...

Upgrade Failed: Exception occurred: General error accessing file "D"

282 byte By DougStoltz at 2008-2-10
I'm getting an exception message upgrading a VB6 EXE to VB 2005. Do you have any tips that could help me identify the problem. I've already fixed the Case Is syntax error mentioned in KB 915917. Are there other KB articles that I should review. Thanks

Cannot Create ActiveX Component -- in a service

632 byte By larthur1022 at 2008-2-10
Hello,I'm having an issue concering the CreateObject method and a service I've been developing. I've written a DLL that executes the statement:CreateObject("CognosImpromptu.Application")When I reference this DLL through a regular app this statement executes easily and the rest of ...

send email via outlook

2080 byte By Bigmo at 2008-2-8
When attempting to send a email from my application via outlook with the following code. I am always prompted to supply a username and password for the account, even thought the dialog box has them in and i have checked save password. is there any way off coding this not to happen ? Imports ...

Installing VS 2005 Broke ActiveX in VB6 and Access - Need Help

692 byte By JoeDeveloper at 2008-2-8
I have a development machine at work that has Access 2000 and VB6 on it with working projects. I have installed VS 2005 as I am training in that language now as well. My problem is that I have functioning code in Access and VB6 that no longer works because of the licensing errors for ActiveX ...

converted vb 6.0 data environment

740 byte By DavePatricio at 2008-2-7
hi, unless i missed something, i couldn't view my converted data environment in design view like in vb 6. any info on this? IDataEnvironment and DataEnvironment are two different things right? hmmm, tried looking up in namespaces but couldn't add an IDataEnvironment from system.design.dll. ...

can't import Excel into Visual Basic

1174 byte By Steadyonabix at 2008-2-7
Hi Hope some body can help with this: -I have just installed Visual Studio 2005 Professional onto my PC and want to write an application that opens an Excel spreadsheet and reads data from a specific range in the sheet.Problem is I cannot seem to import the Excel objects into the program. ...

VB6 get function in VB.net

76 byte By DarkDarkDark at 2008-2-7
Instead of using the get function in VB6, what would i use in VB.NET?

Interop Forms Toolkit - Available yet?

79 byte By Hatzi74 at 2008-2-7
Hello Is the toolkit available already (or soon) ? Thanks :)

MAKING .NET CONTROLS - OCX VB6 COMPLIANT

427 byte By DarioGalvani at 2008-2-6
Hi all,I have to create a .NET control. It have to run in a vb6 app.I'd like to use it like a standard OCX control. I've found in the net that it's possible. there's anyone who can tell me in which way I can do it?It's simple: have a .net control and import it in a VB6 controls list by ...

VB6 -> VS2002 -> VS2003 -> VS2005 -> nowhere fast!

391 byte By PersonalInformationWithheld at 2008-2-6
So, the upgrade from VB6 to VS2003 was really painful when it happened. A positive thing to note about it is that when you do that one you get big lists of errors and warnings and things that you need to change.If you then take that code and try to upgrade it to VS2005 you get NO warnings and ...

Passing a VB6 Oracle Connection to a VB.Net dll

1693 byte By thomasx4 at 2008-2-5
Hi All,I've written a VB.Net dll which requires an Oracle connection to be passed so that database operations can be carried.The dll needs to be able to operate with .Net and VB6 so it's been stongly named, interfaced and been registered for COM Interop.When I try and pass an Oracle ...

VB6.0 to .NEt migration strategy

245 byte By mahalax at 2008-2-5
Hi All, We are looking for information that would help us understand the complexities involved in the migration for Windows and Web apps. Can somebody share information on a definitive guide for VB/ASP to .NET migration. TIA.

MDI parent form and child form

617 byte By BiBiMeiMei at 2008-2-4
Hi, I m doing migration from VB6 to VB.net. The way to show form within MDI form as following:In VB6Call form1.show()I can call child form within MDI form using the syntax above directly, whereas in VB.net it gives me AccessViolationExceptionDoes anyone know how to solve this ...

MAKING .NET CONTROLS - OCX VB6 COMPLIANT

435 byte By DarioGalvani at 2008-2-4
Hi all,I have to create a .NET control. It have to run in a vb6 app.I'd like to use it like a standard OCX control. I've found in the net that it's possible. there's anyone who can tell me in which way I can do it?It's simple: have a .net control and import it in a VB6 controls list by ...

Microsoft.Office.Core.dll Location

364 byte By Benin at 2008-2-4
Hi all,From where shall I get the "Microsoft.Office.Core.dll"?. I need "Interop.Microsoft.Office.Core.dll". I am trying to use tlbimp to generate the Interop.Microsoft.Office.Core.dll from the Microsoft.Office.Core.dll. Is that way correct? where will ...

Types that cannot be Converted from VB6 to .Net

987 byte By Benin at 2008-2-4
Hi all,I have an Interface named "IMyInterface" declared in VB6. And I have a user control project in VB6, this user control implements the Interface "IMyInterface". Now I want to use the user control developed in VB6 in my new .Net Project. So I have added the reference of ...

VB6 -> VS2002 -> VS2003 -> VS2005 -> nowhere fast!

399 byte By PersonalInformationWithheld at 2008-2-3
So, the upgrade from VB6 to VS2003 was really painful when it happened. A positive thing to note about it is that when you do that one you get big lists of errors and warnings and things that you need to change.If you then take that code and try to upgrade it to VS2005 you get NO warnings and ...

COM subprocessing model for Framework 2.0

2024 byte By chipset2000 at 2008-2-3
hi everyone, Primary platform is Framework 2.0 Does anyone is awared with total security about of which are the COM subprocessing model per every .Net Application? Another day, I read that Console application are running by default as STA instead of MTA (as I though). In a fact I had ...