Questions tagged [vb6]

Visual Basic 6.0 (VB6) was the final COM-based version of the VB programming language and IDE, last updated in 2004. It is the predecessor to the modern VB.NET.

Visual Basic 6.0 () is the third generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model. It is also considered a relatively easy programming language to learn and use, because of its graphical development features and BASIC heritage.

The final release of the COM-based Visual Basic was version 6 in 1998. It was last updated in 2004 through Service Pack 6.

  • The designated successor language is . For things like writing COM addins for Microsoft Office you would use or .
  • Support for the VB6 IDE ended on April 8th, 2008.
  • The runtime is supported as part of Windows Vista, 7, 8, 8.1 and 10 and Windows Server 2008, 2012 including R2 and 2016.

Resources:

10799 questions
3
votes
3 answers

Calling Delphi DLL crashes VB6 exe with "Run-time error '-2147418113 (8000ffff)' Method '~' of object '~' failed", but only on some machines!

I have searched for hours but could not find anything similar. The crash has two flavors; one is with "Run-time error '-2147418113 (8000ffff)' Method '~' of object '~' failed" and the second flavor is a total crash where Windows asks if I want to…
Rumi
  • 1,290
  • 1
  • 11
  • 17
3
votes
7 answers

Permission Denied opening an Excel File using Excel 12.0 Library & VB6

I have used Excel in my VB6 apps many times before, and have never run into such a weird problem trying to accomplish something very easy.. I am trying to open an excel (xls or xlsx) file and read through values, as you can probably see. When I try…
HemiJay
  • 31
  • 1
  • 1
  • 4
3
votes
2 answers

display "≤" character into a VB6 Label

I am trying to set ≤ character into a VB6 Label. Looking at https://en.wikipedia.org/wiki/List_of_Unicode_characters The code would be 2264 . Label.Text = Chr(2264) generates an error Label.Text = ChrW$(2264) sets a question mark "?" Does anyone…
A.D.
  • 1,062
  • 1
  • 13
  • 37
3
votes
1 answer

Formatting color for creatin text part in VB6 RichTextBox

So I have this textbox that's actually a game chat. When someone type a message it appers like so: UserName: Message What I want to do here is somehow make the UserName text always appear with different color, so it's kinda seperated from the actual…
3
votes
1 answer

In VB6 application, CreateObject for a c# dll fails with "ActiveX component can't create object" in IDE only

I have C# assembly that I need to use in VB6. I've had this working on previous machines/OS, but on my current Windows 10 machine I can't get it to work when debugging in VB6/VS6 IDE. Whenever, I hit the line: Set interop =…
Terry
  • 2,148
  • 2
  • 32
  • 53
3
votes
1 answer

Textbox lostfocus event doesn't fire when using a default button

Today I stumbled upon a problem with a LostFocus event from a TextBox that didn't fire. Most clients didn't have any problems but a small portion of them reported unexpected behavior. After some research I found that the clients who didn't had the…
Martin
  • 1,184
  • 8
  • 24
3
votes
4 answers

VB.NET- Peformance when testing an empty string

In VB6, I was told that when testing for an empty string, it would be much faster to check this by verifying the length of the string by using : If Len("ABC") = 0 then 'fast or If LenB("ABC") = 0 then 'even faster instead of: If "ABC" = "" then…
moster67
  • 830
  • 3
  • 12
  • 30
3
votes
2 answers

UAC giving problems with my application

i was making an installer for my app its working fine on xp but on vista the UAC is giving problem unless i do a run as administrator the Unexpected error appears when i run my app afters installation, any idea? i am installing the application in…
PUG
  • 4,301
  • 13
  • 73
  • 115
3
votes
3 answers

VB6 ActiveX exe not terminating when reference to it is destroyed

I have a VB6 application that references a VB6 ActiveX.exe application that references a C# .Net library through COM. That C# library has a registerable callback method which I bubble up to the original app. The C# library has two methods. One…
3
votes
1 answer

Add-on for VB6 to find all references, etc?

I was working with VB6 last year and I used an Add-on that made it possible to search not only for the definition of objects or functions but also find all references or calls of specific objects or functions. Unfortunately I can't remember where I…
Toris
  • 33
  • 3
3
votes
1 answer

Why is the speed of drawing graphics slower in C# than VB6

Hi I Wonder why usual graphic speed is so much slower than VB6 in C# code , here is a sample code which does the same thing in VB6 and C# , it takes 1.7 Secs in VB6 on my computer and 4.2 Secs in C# Could someone please tell me why and also if there…
DrSobhani
  • 129
  • 7
3
votes
1 answer

Is it possible to populate a Farpoint Spread 6.0 vaSpread component using a SQL query in VB6?

I have written a query using T-SQL on SQL Server 2008 R2 that provides the correct information that I need to display on a vaSpread component named SSlist on Visual Basic 6. I have already opened the connection to the database, but I am having…
J. Lee
  • 65
  • 8
3
votes
1 answer

Get the Location of an Image from excel and Display it in textbox

I have a code in VB6 that displays image that comes from an excel into picturebox and here is the code for that. Dim appExcel As Excel.Application Dim xlsBook As Excel.Workbook Dim xlsSheet As Excel.Worksheet Dim img As…
Shadow Fiend
  • 351
  • 6
  • 18
3
votes
3 answers

How to send POST to remote url?

How to send POST request to remote URL using VB6 ?
KJW
  • 15,035
  • 47
  • 137
  • 243
3
votes
4 answers

VB6 app controlling Word behaves differently during debug than when compiled

I have a vb6 app that uses Word interop to create a few reports. In the introduction of these reports, there are some instructions in 4 textboxes around an image. Recently and suddenly the top two textboxes started appearing on the next page, and I…
Christian Wattengård
  • 5,543
  • 5
  • 30
  • 43
1 2 3
99
100