2,787 questions with VB-related tags

Sort by: Updated
1 answer

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 =…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 2 Mar 2025, 7:08 pm
jacky Perpète 81 Reputation points
edited an answer 3 Mar 2025, 8:19 am
Castorix31 87,231 Reputation points
4 answers One of the answers was accepted by the question author.

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…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 5 Apr 2021, 8:03 pm
Mugsy's RapSheet 176 Reputation points
commented 2 Mar 2025, 2:26 pm
Rodolfo Martinez 0 Reputation points
0 answers

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++…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 28 Feb 2025, 3:36 pm
Torquinian 1 Reputation point
commented 2 Mar 2025, 2:16 pm
MotoX80 35,596 Reputation points
2 answers

All pages not showing How to fix it?

All forms have the same problem

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 27 Feb 2025, 1:14 pm
MUSTAFA mjh 0 Reputation points
answered 28 Feb 2025, 1:49 am
Jiachen Li-MSFT 33,546 Reputation points Microsoft External Staff
0 answers

INSTANCES OF THIIS ERROR

HOW TO SOLVE THE "INSTANCES OF THIS ERROR" IN MY VB.NET PROJECT?

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 21 Feb 2025, 4:06 am
fathima mahvish 0 Reputation points
commented 27 Feb 2025, 7:48 am
Jiachen Li-MSFT 33,546 Reputation points Microsoft External Staff
2 answers

"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…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 24 Feb 2025, 3:11 pm
Kaleb Riley 0 Reputation points
answered 25 Feb 2025, 2:34 am
Jiachen Li-MSFT 33,546 Reputation points Microsoft External Staff
1 answer

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?

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 23 Feb 2025, 12:00 am
Mr Chan 1 Reputation point
answered 24 Feb 2025, 8:58 am
RLWA32 47,411 Reputation points
1 answer One of the answers was accepted by the question author.

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,…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 14 Feb 2025, 1:13 pm
Andrew Mercer 506 Reputation points
accepted 19 Feb 2025, 12:32 pm
Andrew Mercer 506 Reputation points
2 answers

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…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,598 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 18 Feb 2025, 11:08 pm
Simflex 301 Reputation points
commented 19 Feb 2025, 5:53 am
SurferOnWww 3,886 Reputation points
2 answers

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?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,104 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,490 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,005 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 11 Feb 2025, 11:38 pm
BJ Harper 0 Reputation points
commented 18 Feb 2025, 9:22 am
Jiachen Li-MSFT 33,546 Reputation points Microsoft External Staff
4 answers

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…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 17 Jun 2024, 12:32 am
StewartBW 1,155 Reputation points
edited an answer 17 Feb 2025, 1:06 am
Albert Kallal 5,496 Reputation points
1 answer

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?

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 20 Oct 2021, 10:04 am
Sanniddha Chakrabarti 36 Reputation points
commented 13 Feb 2025, 12:13 pm
Frédéric Jouault 0 Reputation points
2 answers

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…

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,732 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 7 Feb 2025, 8:29 am
Arnau Pla 0 Reputation points
edited a comment 10 Feb 2025, 8:17 am
Jiachen Li-MSFT 33,546 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,104 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,196 questions
asked 6 Feb 2025, 9:07 pm
Clarence Parmar 20 Reputation points
commented 9 Feb 2025, 9:44 pm
Clarence Parmar 20 Reputation points
1 answer One of the answers was accepted by the question author.

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 &…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 1 Feb 2025, 6:09 pm
Mansour_Dalir 2,016 Reputation points
commented 6 Feb 2025, 12:00 pm
Mansour_Dalir 2,016 Reputation points
4 answers One of the answers was accepted by the question author.

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…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,737 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 10 Aug 2024, 7:15 pm
Mansour_Dalir 2,016 Reputation points
answered 6 Feb 2025, 10:38 am
Stephan Berger 0 Reputation points
1 answer

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,104 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,320 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 31 Jan 2025, 3:21 pm
The Master 20 Reputation points
commented 4 Feb 2025, 8:50 am
Jiale Xue - MSFT 49,051 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

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.

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,175 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 1 Feb 2025, 4:04 pm
joep kint 20 Reputation points
accepted 3 Feb 2025, 12:45 pm
joep kint 20 Reputation points
2 answers

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

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 28 Jan 2025, 10:40 am
PKL PKL 0 Reputation points
commented 3 Feb 2025, 7:43 am
Jiachen Li-MSFT 33,546 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

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 =…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,490 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,787 questions
asked 31 Jan 2025, 5:59 pm
SuperCoder 216 Reputation points
accepted 31 Jan 2025, 11:45 pm
SuperCoder 216 Reputation points