vb6

Detect Internet Explorer Version using VB6

I'm updating a legacy app and it has some functionality that detects the version of Internet Explorer that's installed, just for display and error reporting not because any components are required. The code used for IE version detection is basically the code from VBnet - DllGetVersion: Detailed Internet Explorer Version Info (Author: Ka...

Visual Basic 6.0 Language Syntax

I've done a fair bit of googling, but I've been unable to find what I'm looking for. I am looking for documentation of the syntax to the Visual Basic 6.0 language. Specifically something that could theoretically be used to build a parser for the syntax. Does anyone know of such documentation? ...

When the Table was opened by other person, How to select the opened table from the other computer

When the Table was opened by other person, How to select the opened table from the other computer Using VB 6 and Access Database I want to select the table from the other computer when the table was opened by the other person or other software. Code Cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & databasetext...

How do I copy an open file in VB6?

Using VB6, how do I copy an ACCESS 2003 mdb file from another computer to my computer, when the mdb file is opened by another person? ...

Copy only 1 row from a RecordSet (VB6)

I have a RecordSet in VB6 containing multiple rows. I have to copy the current (in a loop) row, and only this one, to another RecordSet (which will contain only that row). The source RecordSet is retrieved from a SQL query. The destination, is only a container for local use. How could I do that? Thanks guys PS: I know absolutely noth...

Disable Internet Explorer shortcut keys

EDIT: After waited a while and didn't get anything yet, I've decided to do shortcut disable thingy only for IE now. Is there a possibility to disable IE shortcut keys to access menus/print etc. via vbscript? Is it possible to disable browser shortkeys? Because many of them are using in application. For instance, "ctrl+p" i...

How to order the table?

Using VB 6 and Access Database My query. Creating a table sql4 = "CREATE TABLE tmp_MOI (RECORDNO varchar(20), PERSONID varchar(20), EmpName varchar(50), TitleName varchar(50), Titlecode varchar(50), Department varchar(50), Nation varchar(50), CardEventDate varchar(50), Intime varchar(20), Outtime varchar(20), PrevDate varchar(50), Pre...

How to find if the network path is available or not.

How to find if the directory is available or not? Using VB 6.0 databasetext = network path available If Len(Dir(databasetext)) = False Then MsgBox "Database Path Not Available" End if I am selecting the file from the network path, if the network path is not available, it showing error "bad file name or number" How to solve this pro...

Close currently opened MsgBox using code

Is there any option to close the currently opened MsgBox using any code in VBA access form application ? \ ...

Writing for FastCGI in VB6?

While I'm busy here reading the FastCGI documentation (yeah, reading the 'friendly' manual), does anyone know whether anyone has had any success writing FastCGI apps in VB6? Starting to get close to finding a solution myself at Coast Research and Development's FastCGI Dll Library (with SIGTERM handler) for Windows Web Servers ...

How To Enumerate Processes From VB 6 on Win 2003?

I've got some old VB6 code part of which enumerates the running processes on the machine via a call to CreateToolhelpSnapshot. I'm attempting to run this code on Win 2003 R2 and I have reason to be a little suspicious of the list of processes that it's returning. I found this article which leads me to think I might need to use a differ...

How to select path only?

How to select path only? VB 6 I want to select a path only. Example. C:\Newfolder \iTDC.mdb - The selected path is appeared in the text box But I want to take only C:\Newfolder, No need of iTDC.mdb file, How can skip the file. Need VB 6 CODE Help? ...

Tool for converting C header files (.h) to VB?

I can see that there are tools for converting .h to Python, Perl, D, Pascal etc. Are there any for VB6 or any other VB-alike tool (like Jabaco for instance)? ...

Change DAO DBEngine DataTable's column from DataType dbInteger to dbLong in VB6

I've inherited a legacy VB6 app to maintain, and my vb6 is more than a little rusty... I've got a DAO Table that had a field of type DAO.DataTypeEnum.dbInteger that needs to be altered to type DAO.DataTypeEnum.dbLong. Is there a shortcut vb6 way of setting this new data type and retaining the existing values, or do I need to create a t...

How to properly support English and French dates with VB6 and SQL Server?

We are adding French support to an older VB6 app. The original developer used a mix of date formats when writing to the database, but SQL didn't seem to mind as it was all in English. (March 31, 2009 or 2009-03-31 etc...) When you try running the app on a French machine, you get: [-2147217913][Microsoft][ODBC SQL Server Driver][SQL Se...

VB6 reference to UserControl

I have a variable of type UserControl private at the top of a class. Depending of some condition, one of my two UserControl is displayed. The problem is that I wanted to SET the global private variable of type UserControl to the visible UserControl to have a reference on it for later use. I always got Error Type Mismatch. Private mo_Se...

Compiling VB6 app w/ .NET interop, only runs if compiled on my machine

I recently developed an interop user control in .NET (Visual Studio 2008, project targetting .NET 2.0) to be used in a VB6 application. The assembly exposes 1 control, 1 class, and a few enums and structs. I developed it using C# translations of the Interop Forms Toolkit 2.0 project template found here. The assembly has a strong name and...

Opening a MS Access database from VB that is being used by another user.

Is there a way to open a MS Access database from VB 6.0 that is being used by another user. I have a service that is updating a .mdb file. I want to monitor this DB by reading some parameters from it periodically. If I try to simply open the DB (which works if the DB is not used) like this: Private Sub Form_Load() Dim CurrentDBFileNam...

How to convert PowerBASIC Types to VB6 Types?

These types come from the demos for FastCGI Dll Library (with SIGTERM handler) for Windows Web Servers and are written in PowerBASIC. I'm trying to convert them to VB6 (having also discovered how to call a CDECL DLL from VB6). ' Structures TYPE FCGX_STREAM pData AS DWORD ' Pointer to the first byte of ...

Why switch from ADO to ADO.NET?

I have some friends who are 'old-school' VB6 database developers and I was telling them about .NET and its features, specifically ADO.NET. In our conversation, they brought up the following reasons why they would rather stick with ADO than move to ADO.NET: The Dataset is disconnected (What if power fails?) The same amount of code stil...