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
4 answers

How to check if a program is running now or not by its title ? (using vb6)

How to check if a program is running now or not by its title ? (using vb6) Example : 'check if there is a program contain a "Notepad" in its title if (does "Notepad" running now ?) then end if
faressoft
  • 19,053
  • 44
  • 104
  • 146
3
votes
1 answer

Convert VB6 Type with arrays to VB.NET Structure

I try to convert those VB6 Types into the VB.NET world. Type TRACK_DATA Dim reserved As Byte Dim Control As Byte Dim Tracknumber As Byte Dim reserved1 As Byte Dim address As Long End Type Type CDTOC Dim Length As Long Dim…
Proger_Cbsk
  • 362
  • 3
  • 12
3
votes
2 answers

VB6 Application Trying to Connect to Azure SQL Database

Goal We have VB.Net applications currently running and communicating with our cloud database hosted by Microsoft's Azure portal. However, we have some VB6 applications that we would like to do the same. Attempt With VB6, I am able to connect to a…
Alex
  • 4,821
  • 16
  • 65
  • 106
3
votes
3 answers

Show VB6 forms when click a link in html page of webbrowser

I am working with VB6 WebBrowser, Here i need to open a vb6 form when user click any particular link of WebBrowser's link like In HTML Click To show VB6 Form2 I do't have any…
Swister
  • 63
  • 7
3
votes
1 answer

DSN-less ODBC connect string for legacy Sybase Adaptive Server Anywhere

This is a failed response to this article: Sybase, VB and ADO I just did a VB6 project connecting to a legacy ASA 7 database. After failing to use ASAProv OLEDB provider altogether (for one reason or another) and much research, here is the connect…
wqw
  • 11,771
  • 1
  • 33
  • 41
3
votes
2 answers

Where to set /TSAWARE in Visual Basic 6.0 project in Visual Studio 98

I need to set the /TSAWARE flag for a legacy VB 6.0 activeX EXE. I can do it with BINEDIT /TSAWARE app.exe after building the app, but I'm thinking there should be a way to select it in the VB6 project itself in Visual Studio. I've looked at…
JonN
  • 2,498
  • 5
  • 33
  • 49
3
votes
2 answers

VB6 array and Type mismatch

I have a VB6 program which populates a two-dimensional array, passes that array into a function of a COM DLL, and then the COM DLL executes a VBScript assigning the array to a variable within the VBScript. It sounds convoluted and antiquated, I…
Developer Webs
  • 983
  • 9
  • 29
3
votes
2 answers

VB6 - Which event is invoked by the X button?

I would like to activate a piece of code in my MDI form when the red X button at the upper right is clicked (I don't know what it is officially called) so that the program closes down nicely. What method in the Form is invoked when that happens?
Brian Hooper
  • 21,544
  • 24
  • 88
  • 139
3
votes
1 answer

How to extract text using regex in vb6

How to extract text using regex in vb6 Dim MyText As String MyText = "anything [*]textToExtract[*] anything" Result Should Be : textToExtract
faressoft
  • 19,053
  • 44
  • 104
  • 146
3
votes
1 answer

VB6 AddressOf and Callbacks in VS 2008

Hey all I am trying to convert some VB6 code to VS 2008 via its automated VB6 code converter. Most does well but there are a few that need a touch up. One said touch up is this piece of code: InitializeGrCap = GrCapInitialize(AddressOf…
StealthRT
  • 10,108
  • 40
  • 183
  • 342
3
votes
1 answer

How can I add multiple existing forms in a VB6 project?

How can I add multiple existing forms in a VB6 project? I have about 200 forms, and copying each form is getting weird for me...
Asad Chohan
  • 31
  • 1
  • 2
3
votes
1 answer

Issues with COM Interop and .NET 3.5 - different behaviors in Debug and Release mode

We have been troubleshooting the following and are looking for some fresh ideas or angles of attack. First scenario: We have an ASP.NET web application - .NET 3.5, C#, built targeting x86 - running on IIS7/Windows Server 2008 R2 (64 bit). The…
Scott C
  • 31
  • 2
3
votes
2 answers

How do I extract images from a VB6 .frx file?

I'm converting some VB6 code to C#. VB6 stores resources in a .frx file, the same way C# stores it in .resx files. How do I convert the images in a .frx file into something that can be embedded in a .resx file?
Bryce Wagner
  • 1,151
  • 7
  • 18
3
votes
1 answer

Declare Attribute in VB.NET

In my VB 6.0 code, I declare have the following line: Attribute VB_Name = "MyFile" However, in VB.NET, I get the error "expecting declaration". Isn't this a declaration statement? Is there a good reference for finding the differences between…
Brian
  • 26,662
  • 52
  • 135
  • 170
3
votes
0 answers

How can I remove multiple text within parentheses with a regex in VB ArcGIS field calculator?

The "Comment" field records include samples like: "Line marker, Fence, Test station (Single: Struct P/S -1.2375V IRF -1.0976V) (ACV: 0.0412V)" "Direction: DownStreamDate Collected: 5/8/2013:START POS RUN ON , Line marker, Test station, Fence, ,…
prometheus
  • 31
  • 2