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

Moving a VB6's Data folder out of Program Files

I maintain a VB6 application that stores its data (access files) in a subfolder of the application folder. So, when the user installs the application to the default location of C:\Program Files\MyApp the data ends up in the Virtual Store. I have now…
Dabblernl
  • 15,831
  • 18
  • 96
  • 148
3
votes
1 answer

VB6 Tabs Not Showing on Form

I recently downloaded VB6 to open a .VBP file that I am in the process of converting to VB2010. My goal is to run the program on VB6 so I can step through the code line-by-line in order to debug the program I am writing from scratch in VB2010. The…
3
votes
1 answer

How to tell if system state is idle asleep etc in vb6

I'm attempting to make my own instant messenger and want the user to go into idle/away mode if the computer hasn't been used in so long. Does anyone have a great idea on how to do this?
TheBob
3
votes
1 answer

How do you return an struct or class from a .NET COM dll to a consuming VB6 application?

This seems like something that would be easy to find on here, but if this has been asked before, I don't see where. Basically, I'm a.NET developer and am having to work with VB6 for a minute and learn about making a COM DLL. I'm working in C# and…
Panzercrisis
  • 4,590
  • 6
  • 46
  • 85
3
votes
2 answers

VB6 ListBox Click and DblClick

I have a need to run different code when a user clicks or double-clicks an item in a VB6 ListBox control. When I click on the control, the Click event handler executes. However, I am finding that when I double-click on the control, both the Click…
E Brown
  • 692
  • 1
  • 8
  • 18
3
votes
1 answer

Yellow objects on my form exhibit click-through transparency

I have an issue with yellow objects being 'click-through' on multiple vb6 forms in my application: The only thing I can think of that may affect it is the following (from VBForums, which I used to make cyan elements transparent, like you can see in…
3
votes
1 answer

How can I add an icon to an OCX made with Delphi so that it is visible in VB?

I made an OCX with Delphi 2007. Now my customer claims that there is no icon in his VB when he installs this OCX. How can I add such an icon to my OCX?
Uwe Raabe
  • 45,288
  • 3
  • 82
  • 130
3
votes
3 answers

How do I get hardware info such as CPU name, total RAM, etc. with VB6?

Title pretty much explains it all. I need to get some hardware information such as CPU info, and total RAM with VB6. Ideally, it would return something like this for the CPU: Intel Core 2 Quad Q8500 2.66 GHz and for the RAM something simple like…
qJake
  • 16,821
  • 17
  • 83
  • 135
3
votes
4 answers

Make a query that show result in another column

i have a table like this : id - name - referred_id - referred_name 1 - mark - 100 - nick 2 - david- 100 - nick 3 - mat - 100 - nick 4 - patrik- 101 - robert 5 - mick - 101 - robert i use this query to…
user334681
  • 169
  • 8
3
votes
2 answers

Calling VB6 forms from .Net COM DLL?

We have a very large application that is written in VB6. It has hundreds of forms/user controls/classes etc. We have started migrating to .Net (currently on framework v2, although just about to change that to v4) with a COM exposed DLL by converting…
Slugsie
  • 851
  • 1
  • 7
  • 17
3
votes
2 answers

VB6 Read File with Deutsch Character

Actually, I want to read a text file. And i use this code Function FileText(filename$) As String Dim handle As Integer handle = FreeFile Open filename$ For Input As #handle FileText = Input$(LOF(handle), handle) FileText =…
Fransiscus
  • 31
  • 4
3
votes
2 answers

How to parse json string in vb6

I'm calling a web service in VB6 which returns a json string as response. I'm able to hold the response in a string. now I want to show the each parameter separately how can I extract the values from the string ?. a sample string is here : { …
Suman Kumar
  • 27
  • 1
  • 1
  • 7
3
votes
1 answer

How use New keyword to create a New object in VB6, such as new button, label, etc

I have a program that get several names, and save them in a file. I want to create a new object (button, label, etc) for every person that saved in the file. I use this code, but I got error : Dim i as new object set i= new button The error that I…
Elias
  • 39
  • 1
  • 5
3
votes
1 answer

Textwidth not showing correctly in millimeters vb6

I have a picture box and I print contents in it. I want to know the exact textwidth of the text in millimeters. But I get wrong value. here is my code me.scalemode = vbmillimeters picturebox.scalemode = vbmillimeters picturebox.fontname =…
Srinivasan
  • 293
  • 1
  • 6
  • 16
3
votes
1 answer

Deploying apps created using QuickBooks SDK

I have written an application that interfaces with QB Pro in VB6. I would now like to deploy it to the client's system. What are the DLLs and/or MSMs that I should include in the installer? I am using the Visual Studio Installer to create the…
Ram Badran
  • 31
  • 3
1 2 3
99
100