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...
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...
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...
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.
...
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 (...
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
...
Hi!
I want to set focus on a textfield on one form, from another form.
How do I accomplish this in VB6?
...
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 ...
In the VB application I use the CRAXDRT.dll and a ReportViewerControl on a form. Which merge modules do I need?
...
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
...
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...
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 ...
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
...
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...
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; ...
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.
...
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...
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...
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...
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...