How to extract values of characters used with Shift key using MapVirtualKeyEx API?
I use the MapVirtualKeyEx api to extract characters from the virtual keys on the keyboard. Here is the code in VB. Const MAPVK_VK_TO_CHAR = 2 Dim keyblayoutID As Integer = GetKeyboardLayout(0) For nb As Integer = 0 To 255 Dim ScanCode As UInteger =…

Help. Decompile EXE back to VB source code?
Last January, I fell victim to some RansomWare. :( I managed to recover most of what I lost from backups, but one program I wrote was up to v4.0.5 and the only source code I was able to recover was from a months-old backup of v4.0.3. Is there a way…

Why does this statement take so much longer on a faster machine?
I am using VS2022 and Basic. I am finding that when the compiled EXE is run on an old APP Server with old Visual C++ Redistributables that this statement runs acceptably fast, but if I run the same EXE on a new APP Server with current Visual C++…

All pages not showing How to fix it?
All forms have the same problem
INSTANCES OF THIIS ERROR
HOW TO SOLVE THE "INSTANCES OF THIS ERROR" IN MY VB.NET PROJECT?
"BC30560 'Padding; is ambiguous in the namespace 'System.Windows.Forms'" suddenly appearing on an app that was working last week.
I'm creating a Windows Forms app in VB .net 6.0 and suddenly after reopening and trying to edit the app one of my designers won't open or run. This isn't the first time I've had issues with dotnet apps in Visual Studio and Visual Basic. I was working…
vb6 compiled application recently appear hanging for a moment when switching back and fro
I have a vb6 compiled application that recently appear hanging for a moment when switching between different software. That slow down my tasks. Not sure if others have the same problem. I am running window 11. How that can be fixed?
Some imported namespaces have a disabled (greyed) check mark
Using VS Community 2022, I have a VB Windows Forms Project. In Project, Properties, References, I see about a dozen namespaces with a check mark indicating they are imported into my project. So far so good. Three of them (System.Drawing,…
Validating user's input format is not working
Our requirement is to ask users to create a password with the following format: First letter of firstname+First letter of lastname+2 digits of month+2 digits of day+4 digits of year. For instance, a user with the name of John Doe, born January 1, 1900…

Can I execute a report from Report Builder in my VS2022 VB.net WinForms application
I have been able to display a report on an asp webpage from my vs2022 vb.net webforms application but I can not display a report that has more than 1 table/dataset. Is this possible?
Compact and repair mdb
Hello I use Access Database Engine and OleDbReader to work with mdb files. If my memory serves me, I've been told, compact (and repair if necessary) of mdb files is not provided in Access Database Engine? If so, which component and command to use, when…
extension for running Visual Basic script in Visual Studio Code
I want to run Visual Basic code in Visual Studio Code. So, when I search for Visual Basic extension in Visual Studio Code, it shows several extensions. Which is the right extension for running Visual Basic script in Visual Studio Code?
Can't a remote APP using AxMsRdpClient11NotSafeForScripting be moved to a 2nd left screen with different scale?
In my .NET Framework 4.8 project, I am using the class AxMsRdpClient11NotSafeForScripting from the AxMSTSCLib library to open a remote app. I have a second screen on the left where I can't drag the app to. I can only move it if the two screens have the…
Help Needed: Clarifying VB.NET Concepts (Namespaces & MSIL)
Hey VB.NET developers! I'm trying to clear up some confusion in my study materials and would love your expert input on these two questions: What Exactly is a Namespace in .NET? Question: Which of the following best describes a Namespace in .NET? a) A…
Regex to Match and Keep Distance Between Non-Printing Text Characters
How can the distance between non-printing text characters be matched and kept to less than 2 characters long using regex? Dim LenSpace As Integer = 2 Dim sttTest As String = "[A A] [AA BB] [SS UU POPO SS] [GAB]" & vbTab &…


How to display menu by NotifyIcon without displaying the form in Taskbar
I have a form with a NotifyIcon and a ContextMenuStrip and I want to display the menu by clicking on the notification, but unfortunately it is displayed in the taskbar. Why? I tried setting the ShowInTaskbar property to false, but it didn't work.Tip Only…

Win11 Scaling Issues with .NET 4 WinForms Application
A WinForms application developed in .NET 4 is experiencing display issues when running on Windows 11 with a zoom level of 125%. The application does not properly support DPI scaling due to limitations in .NET 4. Attempts to use the Windows API function…
Userform create with vba excel
In my excel VBA project overview, the userform option is missing in the insert menu option. Only module and class module are shown.
Install visual basic SP6
Impossible to install the cumulative version of VB SP6 as long the VB SP6 is not installed??? Please advise. KR Pierre
Declare variable error
Receive this error when running the code below. Don't know how to resolve it. Command1.CommandText = "UPDATE names2 " & "SET trn_date1 = @trn_date1, " & "trn_date2 =…