Visual Basic 6.0 (VB6) is the third generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model.

learn more… | top users | synonyms (1)

1
vote
1answer
16 views

Visual Basic 6 ADO update sql string

I am trying to update a single record in sql using a recordset I'm Pulling data from one recordset and trying to save it to another table in the database This is the code I have the insert statement ...
0
votes
2answers
21 views

I upgraded a Visual Basic 6 project to Visual Basic 2008 project and got unknown errors

I've recently upgraded my project to Visual Basic 2008 and I'm getting the following errors which I cannot identify, I hope someone can help: AxThreed.AxSSCommand is not defined ...
1
vote
0answers
22 views

Debugging VB6 Code From Visual Studio 2012

We have a .NET application using a lot of legacy components written in VB6. We were able to debug the VB6 code using native code debugger and generated pdb files in Visual Studio 2010. After upgrading ...
-3
votes
2answers
32 views

Clarification on SetProperty in VB6 [closed]

I have the following VB6 code: Dim xmlDoc As Object Set xmlDoc = CreateObject("MSXML2.DomDocument." & sVer) xmlDoc.setProperty "NewParser", True I have never done VB coding before. Can ...
-2
votes
0answers
20 views

COM RCW - ActiveX Component can't create object

I have one COM component - "ProgramA.dll" This COM component is internally referencing "ProgramB.dll", and creating an instance of underlying object as follow: Public Sub AddData() Dim..... ....... ...
-2
votes
2answers
19 views

how to deduct time variable in vb6 and access global variable

In My application there are 2 project added which uses Now() which returns the system time . Now i have to create a function which closes the application if the gap between 2 subsequent call of Now() ...
0
votes
0answers
11 views

display tooltip with true dbgrid in vb6

I need to display a tooltip in a specific column of a true dbgrid. Is there any way to do this? I'm working in vb6. Thanks in advance. Giampaolo
0
votes
2answers
21 views

Error 53 when checking if file exists

I am using the following code to check if a file exists: If Len(Dir$(strFile)) > 0 Then This worked fine until today. In some cases I get the following error: The error points to the line of ...
0
votes
0answers
10 views

Unicode is not supporting in vb6

we have a application written in vb6, we also have the multilingual support for this application, we provide all the user message along with the ID's in .LNG file but application is not supporting the ...
0
votes
1answer
20 views

The type 'COMSVCSLib.ObjectControl' is defined in an assembly that is not referenced

I have two VB 6 assemblies (DLLs). ProgramA.dll, and ProgramB.dll, which I need to add as reference in my .NET Web Service (version 2.0). I was handed over these two DLLs by different developers. One ...
-1
votes
1answer
11 views

Winsock closing after sending data?

After my winsock sends data, and the DataArrival event is triggered, right when I exit the sub the sock closes. Is the proper way to do sockets to open/close it like this every time? I figured I'd ...
-1
votes
1answer
17 views

Teechart pro v 3.0 (issues)

Sorry if i'm asking this on the wrong forum... Hello. We use Teechart pro v.3.0 (yeah...it's old) in one of our projects here...We upgraded our pc's and so the SO in the process...we use Win 7 ...
2
votes
4answers
71 views

ReDim Preserve to a Multi-Dimensional Array in Visual Basic 6

I'm using VB6 and I need to do a ReDim Preserve to a Multi-Dimensional Array: Dim n, m As Integer n = 1 m = 0 Dim arrCity() As String ReDim arrCity(n, m) n = n + 1 m = m + ...
-3
votes
3answers
45 views

Configurable DateDiff from VB6 to C# [closed]

I have to convert below VB6 logic into C#. The VB6 code is as below. Public Function ProcessFile(sFile As String) As Boolean 'Some logic here If (DateDiff(strType, dtScanDT, Now) > ...
-1
votes
0answers
32 views

Connection Strings In a VB.Net Class Library being used by an old VB6 application

I am creating a VB.Net 2010 class library which contains the usual classes and winForms. This will be referenced and used by a legacy VB6 application. In the class library I have found out that you ...
-1
votes
0answers
31 views

Passing lpCurrentDirectory to CreateProcessA

I have an executable that runs by calling CreateProcessA API in VB6. The issue is that process needs to be in the parent directory of this executable. For example, if the exe is ran through a ...
0
votes
2answers
76 views

Querying data from database with vb6 and ms access with adodb

I want to select and view my data in the database, but it’s proving to be a challenge. Any advice on where I could be missing it? If I run this code even when the select criteria is met, it always ...
0
votes
0answers
27 views

vb6 text control when property set to multiline cannot hightlight text past box length, have to use right directional key

When I set the multiline property of the text control to true, when in use, if the text control is used as a basic one line textbox and the text typed in goes past the length of the box, it only ...
-1
votes
1answer
41 views

get subfolders without For Each Loop?

Is there any method in vb6 to get the Subfolder name without using For Each Loop? Most of thread suggests using For Each with FSO, but what if I want to get the subfolder name of specific Folder? ...
0
votes
1answer
23 views

VB6: How to Search Listbox using API and get all matchs?

I have a listbox with a few thousand items. The code below given by @AngryHacker in this threat work perfect if i want to get the 1st match. But sometimes i have multiple items with the same data. ...
1
vote
4answers
106 views

Random Numbers from 0 to &HFFFFFFFF

Are there any ways so I can generate random numbers from 0 to &HFFFFFFFF in Visual Basic 6.0? I am using the following function Function RandomNumberLong(Lowerbound As Long, Upperbound As Long) ...
2
votes
1answer
61 views

Make a .NET Control transparent in VB6

So I've got this problem where I'm creating a control in c# .NET, and I can use it just fine in VB6. However, since you can't place borderless controls in .net containers in vb6, I've tried making a ...
0
votes
1answer
32 views

WinApi: Calculate ListView height

I have a VB6 listview in Details mode, showing X number of items. I want to create some kind of auto-height function that evaluates the height based on a specified width and the number of items. The ...
3
votes
1answer
99 views

Read Random Access File in C#

Does anyone know if it is possible to read random access files in C#? I am trying to replicate the following function (from an old VB6 application) in C# - Open File For Random Shared As #100 Len = ...
1
vote
2answers
46 views

Vb6 Printer Object Print Japanese

I want to use printer (windows driver) to print Japanese in a vb 6 project. My project is in Japanese Windows Environment (the OS is English Originally, set Japan region and related language). I use ...
0
votes
2answers
82 views

VB6 declaration for C++ function gives “Bad DLL calling convention”

What is the correct VB6 declaration for this C++ function: LPCWSTR* MW_ListReaders(_ULONG Context, int* NumberOfReaders); The following gave me "Bad DLL calling convention". Private Declare ...
-1
votes
1answer
43 views

VB6 - braek program untill a button is clicked

I'm using VB6 and I'm trying to do the following: I have a command button that execute a while statement. in this statement I'm loading a new form with: Load FrmPayment FrmPayment.Show I want the ...
1
vote
2answers
48 views

what is equivalent of “mmddhhnn” datetime format in Visual Studio .NET?

I have a VB 6 source code, and I am rewriting it in .NET At some places I have found a date is converted into "mmddhhnn" format. I am not sure what is "nn" here, also if I put as it is in .NET, then ...
-2
votes
0answers
42 views

Java runtime run manually [closed]

I am using one of the website in my vb6 application using internet controls. In one of the page in that website for some process java is required to run. But due to some reason it gets closed or ...
0
votes
1answer
33 views

VB6 How to Suppress Security Message with MAPI Control

This is the most common message we face, i have seen the code to resolve this by other means, but don't have an idea how to resolve this by using MAPIMessages Control. Please help "A program is ...
0
votes
1answer
22 views

MAPI Control Multiple attachments

I am trying to send an email with multiple attachments using the VB6 MAPIMessages control. 1) I am able to use this control to send a single attachment but it displays an error saying "Attachment not ...
0
votes
1answer
29 views

Insert Data From Textfield in webbrowser Url

How can i get data from textfield in webbrowser url in VB6 WebBrowser1.Navigate2 "http://hamariweb.com/islam/islamicnames.aspx?e=TEXT" TEXT = at that place i want to insert text from text field
0
votes
2answers
51 views

How to send/receive windows messages between VB6 and c#?

I am not a good programmer of C#, thus I need a small piece of code to send and receive messages between a C# and VB6 program, I have tried many examples from web but not succeeded due complexity of ...
1
vote
1answer
54 views

Runtime Overflow error in visual basic 6 code

Following code of Visual Basic 6.0 - SP2 is giving Overflow error. Can somebody explain why? Private Sub Form_Click() Dim Qty as Long Qty= 290 * 113 '' 112 is working fine MsgBox Qty ...
0
votes
1answer
30 views

how to make a report act like a bill

i have a form it's purpose to view a client (client table) and a number of orders (order table) i need when the user build the order to a client the user can press a button called print bill so the ...
0
votes
1answer
33 views

VB6 Compile Outlook add-in - Compile Error: Automation Type Not supported in Visual basic

I have got an infuriating problem trying to compile a VB6 Outlook Add-in component following an upgrade of Office on the same PC to Office 2013 Pro Plus. The error Compile Error: Automation type ...
2
votes
4answers
71 views

Do Legacy VB6 Timer Ticks stack or skip if previous tick is still running

We have a (very) Legacy application written in VB6 (15 years old?). The application contains a timer with 300ms interval. The Sub called when the timer ticks executes a batch of code that talks to ...
-1
votes
0answers
61 views

autocomplete textbox on keyup in vb6 and flexgrid

I used some codes for performing textbox autocomplete in msflexgrid and vb6 (like excel autocomple). While the user is typing,It searches values in a column and based on values typed above the ...
0
votes
1answer
24 views

Comparing Dates With User Input

I have found a statement that compares two dates to see if one is greater than another: If Format(Date, "m/d/yyyy") > #1/1/2000# Then MsgBox "Okay" That's basically saying if today is later than ...
0
votes
1answer
11 views

WIA - determining the page count

I am using WIA2.0 on VB6. I could do scanning without anyissues.. But, the problem is i could not figure out the number of pages scanned when it's ADF. I could see something like this in msdn. ...
-1
votes
1answer
50 views

How to select 1 field from database then store to array in vb6

How to get all the id numbers in database then store all id numbers to array in vb6? Or is there another way to store all id numbers in one variable only? Because later in the program, I will use ...
-1
votes
2answers
48 views

compile error : procedure declaration does not match description of event or procedure having the same name

I have copied my entire vb6 code from one machine to another , now when i was running my code on another machine ,it shows error like : compile error : procedure declaration does not match description ...
-1
votes
1answer
87 views

Select max visual studio 2010

I'm updating a program from Visual Basic 6 to Visual Studio 2010 and, of course, I have founded a lot of problems so solve. I'm using Access database with four tables with the same Key (Indice). If ...
0
votes
2answers
51 views

Fast Listview Loading

The question is a simple one and many of you would already know that Listview is much slower even if it is hidden. There are some suggestions like: Loading partial data and then load on scrolling, ...
-2
votes
0answers
18 views

How to retreive records between from DTPICKER1.VAL TO DTPICKER2.VAL in crystal 8.5 using MS access and vb6?

<CODE> Private Sub CmdRpt5_Click() SQL = "SELECT ASSET.AID,ASSET.ASSET_NAME,ASSET.UNIT,NOTE.DOC_NO,NOTE.QTY, NOTE.RATE, " & _ " ...
-1
votes
1answer
51 views

Connection to MS access 2007 via form using vba

I have created a sample MS access 2007 database and designed a form to retrieve the records of the user , if the username and password entered in the form matches the record.In the button action it ...
2
votes
2answers
47 views

Visual Basic 6 Command included on String Table

Here is the situation, I have this string table, in a .res file and I have some strings loaded into one of the forms, say Form1. On a form on I want to popup a message box with a message loaded from ...
0
votes
1answer
24 views

Reading fields in database into a string gets spaces i cant remove

I'm using an API from a company called Visma. And when i read from their database you need to allocate space in a string depending on how many max characters you can have in that field in order to ...
0
votes
2answers
64 views

How to Import Data from Ms access table to sql server table

I have one table, Checkinout in Ms Access, and I want to import all the data of that table to my SQL Server database Checkinout table, using VB 6.0: This is my code. It is not working perfectly [is ...
4
votes
1answer
46 views

Is Windows Service an ideal replacement of a VB 6 exe deployed as a scheduled task?

There is an existing VB 6 exe which is set as a scheduled task (running every 20 minutes) on a Windows server. The client now wants it to replace with a .NET component. Is writing a Windows Service ...

1 2 3 4 5 106
15 30 50 per page