VB6 always asks to save vbp file when one tlb file is referenced
I’m moving my VB6 dev environment from Windows Server 2016 to Windows Server 2022. I’ve installed and registered all the components our legacy projects use. When one tlb file is referenced VB6 asks to save the vbp file every time I run the project. There is no change to the vbp file. I’ve unregistered and registered the tlb files multiple time. Anyone have any ideas what I can check?
Duplicate Rows in VB6 Random Access File
I am having issues where a program is copying data from one record to the following record in an old VB6 random access file. This happens when it reads the data, but only sometimes. I have also noticed that a VB .Net library that does the same things with file streams does not have this problem. This has only just started happening, this code hasn’t been changed recently.
VB6 using app.path connection string appears in textbox
In my application I am using App.Path to connect to an access database, I have used this many times before without a problem only this time the connection string appears in a text box on my form.
I have a textbox1 that datasource is ADODC1 and the field is first name so when I run my application the first name in my database table “John” should show in texbox1 but what appears is “C:UserswienDesktopCRM” which I find really strange. Has anyone any idea why this is happening my code looks is as below.
VB6 using app.path connection string appears in textbox
In my application I am using App.Path to connect to an access database, I have used this many times before without a problem only this time the connection string appears in a text box on my form.
I have a textbox1 that datasource is ADODC1 and the field is first name so when I run my application the first name in my database table “John” should show in texbox1 but what appears is “C:UserswienDesktopCRM” which I find really strange. Has anyone any idea why this is happening my code looks is as below.
Would Like To Print Source Code for all Forms and Modules in a VB6 project
I have a classic VB6 project which contains forms and modules. I would like to add a Sub procedure to one of the modules which will print to a file the source VB6 code in all the forms and modules in the project. I didn’t know how to do this so I asked ChatGPT 4.0 to write the code for the Sub procedure. ChatGPT generated the code, and I was told to add a reference to “Visual Basic for Applications Extensibility 5.3” to the project. I added the reference and ran the Sub procedure. The program stopped when it reached the line “Set vbProj = VBIDE.VBE.ActiveVBProject”. “VBE” was highlighted and the error message was “Method or data member not found”. Below is the Sub procedure. I would be grateful if someone could suggest a correction to get this to work. Thank you.
VB6 Webcam Questions
In VB6, I can turn webcam on, close it, & save an image. But, I get a green screen in the picture box when I use the Format after first time. Then, I notice I can tell it to save a pic without the canera being on and it bombs out. Of course, the obvious is that nobody should click Save Pic without the camera being on but I’m sure somebody would test it. Is there code test to see if the camera is on then turn it on if not? I can test if the built-in camera is available but that’s not the same as whether it’s on!!!
Method or Data Member not found This is my code
“Hey guys, I’m stuck on this problem and I could really use some help finding where I went wrong. I’ve checked my work a dozen times, but I just can’t seem to spot the mistake. Any ideas or suggestions would be super appreciated. Let’s solve this puzzle together!”
Printer RightToLeft
I have 2 PCs and 1 Printer
Visual Studio 2017 Designer error after converting from VB6
After converting from VB6 to VB.NET I get the following error when I want to display a form: