vb6

COM Interfaces and Binary Compatibility

In the day job, I work on a VB6 (I know, but don't mock the afflicted...) application that uses a number of libraries we have written (also in the ever illustrious VB6). One of these supporting libraries had a load of private members exposed via public properties, and I was asked to remove the properties, and promote the private member v...

RegAsm for Class Library Used in VB6 Application

To be short and to the point, I've built a C# class library that is both COM-Visible and Registered for COM Interop. I've compiled the library, which resulted in the generation of .dll and .tlb files. I have another machine that's running a VB6 application. So, I copied the .dll and .tlb files over to C:/Windows/system32 folder on the...

Bang Notation and Dot Notation in VBA and MS-Access

While perusing an application that I'm documenting, I've run across some examples of bang notation in accessing object properties/methods, etc. and in other places they use dot notation for what seems like the same purpose. Is there a difference or preference to using one or the other? Some simple googling only reveals limited informati...

VB 6.0 Transparent checkbox

We could not make the VB6.0 checkbox as a transparent one. Can you suggest me how to make check box as a transparent? I searched internet and many sources indicates that checkbox cannot be made as transparent. ...

CreateProcessWithLogonW & lpEnvironment parameter : add new environment variable to new process

Hi, A processA having UserA credentials runs a processB with UserB credentials. I'm using CreateProcessWithLogonW with LOADING_PROFILE (needed) I'd like to add some new environment variable to the processB like : HOMEDRIVE = UserA HOMEDRIVE HOMEPATH = UserA HOMEPATH CALLINGUSER = UserA USERNAME Here is the VB6 function I'm using (...

Differences between migrating from vb6 to vb2005, vb2008, vb2010

I own a copy of vb2005 professional. I need to migrate a vb6 project to vb.net Is there any difference in terms of effort to migrating to these editions of vb.net thanks ...

VB6 - set focus on a textfield on another form

Hi! I want to set focus on a textfield on one form, from another form. How do I accomplish this in VB6? ...

Deploy merge modules to clients

I need to deploy some Crystal Reports XI .dlls (craxdrt.dll, crviewer.dll) to client computers. Craxdrt.dll has many dependencies. I found out that the easiest way to go about this is to use the supplied merge modules. Having always relied on ClikOnce deployment I am at a total loss how to do this. If it matters: the .exe is written in ...

Which merge modules to use for a Crystal Reports XI deployment with a VB6 application?

In the VB application I use the CRAXDRT.dll and a ReportViewerControl on a form. Which merge modules do I need? ...

Cannot update any cells in datagrid in vb6

Hello I'm trying to update a row in datagrid but the problem is that i can't even change its cell values I had set my datagrid AllowUpdate property to true , but i can't still change any cell values Option Explicit Dim conn As New ADODB.Connection Dim cmd As New ADODB.Command Dim recordset As New ADODB.recordset Public Action As String ...

Creating Simple desktop database application

Hi guys, I am here to write a small database application that will be running in desktop (offline mode). I am using MSAccess 2007 as my database file and trying to write code in vb.net. I used to write the code vb6 an usually had global variables for storing database connection and executing every query from that. I am trying to upgr...

Can I destroy a class instance even if there are still references?

For debugging reasons I want to destroy a class instance which still as references. Is that possible? It doesn't have to be elegant or stable, because this'll never end up in production code. To clarify: Public Sub Main Dim o as MyClass Set o = New MyClass //o is created, one reference DestroyObject o //Class_Terminate ...

upgrading of datagrid from vb6 to vb.net

hi guys, I am upgrading from vb6 to vb.net. I used to list my query results in datagrid in my previous applications. What can be more visually attractive control in replacement of datagrid? I hate the classic look of datagrid ...

How can I manipulate a VB6 Collection in .NET?

Hello all, I am currently in the process of designing an interface for .NET software that would be consumed by COM objects - specifically, VB6. While I have found a number of pages by Microsoft detailing how to make an COM-interoperable interface, I am currently tripping over the use of Collections in design time: I would like to be ab...

How to delete VB code from an Excel sheet using C#?

Does anyone know how to delete all VB code form an Excel workbook using C#? This code doesn’t work. It removes first (last one) VBComponent, but rises ArgumentException on second one. VBProject project = workbook.VBProject; int componentsCount = project.VBComponents.Count; for (int i = componentsCount; i >= 1; ...

Need Query without Field names retriving in MDB?

I am using the MDB as backend, frontend using vb. When i am retriving the output in excel the result provide the output the result with field names. I only need the result, how can i avoid the field name display for that. I am new in this MDB and vb. Please help me for a query providing the result without field names. ...

Cannot Debug Visual Basic 6 ActiveX Component On 64-bit OS

Hi, The situation might sound a bit weird but I have to play with what I have. There's a Win2003 64-bit server OS and a legacy application written using Visual Studio 6. The app consists of two parts: ActiveX components written in VB6 and C++ code which uses them. I need to debug the components' code. I installed Visual Studio 6 on th...

Opening vbp Visual Basic Project

I have got some old sources written in Visual Basic. There are *.bas, *.cls, *.frm and *.vbp files. As I understand, vbp is a project file. But I cannot open it with my Visual Studio 2008. What version of VS should I install to open *.vbp file? Google says it is Visual Studio 6, but I am not sure and I cannot find Visual Studio 6 for do...

Any way to install myodbc 2.50.39-nt on a 64bit windows 7 computer?

Is there anyway to install myodbc 2.50.39-nt on a 64bit windows 7 computer? (it says 'the version of this file is not compatable with the version of windows that you are running') I have a few old VB6 programs that use it (almost all of it has been moved to a private intranet) If it isn't possible, it looks like the newer version of myo...

MySql ODBC connection in VB6 on WinXP VERY slow. Other machines on same network are fast.

Hi All, I have a VB6 application that has been performing very well. Recently, we upgraded our server to a Windows 2003 server. Migration of the databases and shares went well and we experienced no problems. Except one. And it has happened at multiple sites. I use the MySQL ODBC 5.1 connector to point to my MySQL database. On identical...