671 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
116
views
What algorithm does Visual Basic 6 use to generate its pseudorandom numbers?
I have legacy code written in Visual Basic 6. It uses Rnd and Randomize to produce an output given an initial random seed. These are the rtcRandomNext and rtcRandomize functions in the MSVBM60.DLL, ...
0
votes
1
answer
68
views
Global Variable change tracking
Long time ago on VB6 it was possible to stop the code when a global variable was changing from 0 to 1.
With VB.net 2022 there is no way I can do that.
I look at all the documentation on Conditional ...
2
votes
1
answer
69
views
VB6 Migration - icons display with black outline on Windows Server 2019
I'm working on migrating a VB6 application that uses ImageList and Image controls to display icons. The application works correctly on Windows Server 2008 R2, but when I run it on Windows Server 2019, ...
0
votes
1
answer
125
views
Migrating Legacy VB6 App with C DLL to .NET MAUI – Where to Start? Cross-Platform Compatibility
I’m currently tasked with migrating a legacy sensor data acquisition application that was originally built using Visual Basic 6. It uses a C-based DLL to communicate with hardware and gather sensor ...
2
votes
0
answers
121
views
VB6 to VB.NET conversion failing with error VBUP102 "Unexpected error preprocessing file frmCA" and no frmCA.Designer.vb file is generated
I am running VS2008 on Windows XP in order to make an initial conversion of a VB6 codebase to .NET 2.0. Later, it is intended to remove dependencies on legacy ActiveX controls and then migrate to a ...
1
vote
1
answer
143
views
VB6->DOT NET :: What is the dot Net code for this old method?
I'm building an application that has its data on a custom data structure array with multiple variables and child arrays of other custom structures...
I need to be able to save and load that data to ...
0
votes
0
answers
128
views
Btrieve Classes for .NET 8 - How to set localtion of DAT file in DDF
I use DbSetFileName function in Btrieve Classes for .NET 8 library to change the location of DAT files. Although the returned value is 0 after the function call. But when I check the DAT info in DDF ...
2
votes
0
answers
176
views
Best Practice for disable automatically deactivating .NET ActiveX Controls in VB6?
I'm porting an old Visual Basic 6 program. I deployed the migrated component in WPF and provide that component as an ActiveX control (C#, Windows Forms, .NET Framework) to add the control temporarily (...
3
votes
1
answer
185
views
Format and indent Json string in vb6 [duplicate]
I just have this string:
dim stringa as string
stringa="{"data":{"GET:oauth.openapi.it\/counters":{"counter":22,"paid":0,"limit":false},"...
0
votes
1
answer
65
views
Replacing a Custom DoEvents-Function
I've been recently introduced to a project that uses WPF to visualize some work. The application uses some custom windows to display a popup window. There is a bug in the application where this custom ...
3
votes
0
answers
233
views
"Unable to open company file" message returned (Sage 50 Canada)
We're developing a COM-aware .Net assembly that is used in a legacy VB6 app and keep getting the above message when opening a connection via SDKInstanceManager.Instance.OpenDatabase. When we call our ...
1
vote
0
answers
249
views
picturebox.Scale, picturebox.Line in vb.net
I have the following Sub function I need to convert from Vb6 to Vb.net.
The .Scale() & .Line() methods aren't supported anymore and I am brand new to the VB language so I am having a hard time ...
0
votes
2
answers
569
views
VB.NET How to Keep a file open for writing
trying to convert a VB6 program just now, it uses FILESYSTEMOBJECT to create a TEXTSTREAM for appending, and once opened it is kept open for the whole process as this is the method of writing to the ...
1
vote
1
answer
286
views
Error on Upgrading VB5 code to Vb.net in Visual Studio 2008
I have a legacy VB5 desktop application which I'm upgrading to VB.Net in Visual Studio 2008. In bulit VBUW in 2008 did the upgrade partially. But still having thousands of errors which needs manual ...
2
votes
1
answer
1k
views
Visual Studio 2022 - Error when compiling old application
We are trying to compile a very old application from 2002 on VB6 at the time (32bits application) in Visual Studio 2022. We need to debug this application and be able to run this app on a Windows 10 ...