2,792 questions with VB-related tags

Sort by: Updated
1 answer

What Is the Best Way to Display the Native Windows Explorer Context Menu for Files in VB.NET?

What Is the Best Way to Display the Native Windows Explorer Context Menu for Files in VB.NET?I'm developing a VB.NET application and aiming to replicate the native context menu of Windows Explorer (the menu shown when you right-click a file in Windows…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,792 questions
asked 2025-03-06T11:39:55.11+00:00
Mansour_Dalir 2,016 Reputation points
commented 2025-03-06T15:18:29.54+00:00
Mansour_Dalir 2,016 Reputation points
2 answers One of the answers was accepted by the question author.

Where can I download VB6 runtime?

I can find the update but not the product itself.. Any assistance would be greatly appreciated.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,792 questions
asked 2025-03-05T13:27:53.0966667+00:00
Godwin, Jeff 0 Reputation points
accepted 2025-03-06T13:21:33.39+00:00
Godwin, Jeff 0 Reputation points
1 answer One of the answers was accepted by the question author.

DWMWA_USE_IMMERSIVE_DARK_MODE won't update

Hi Using this code to switch to dark and light mode for my .Net Framework 4.8 app only, but they won't apply until the form is resized, I can do: Me.Width = Me.Width + 1 Me.Width = Me.Width - 1 But that's not the way to go, the code, Windows 10 21H2, any…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,792 questions
asked 2025-03-05T19:37:40.9233333+00:00
StewartBW 1,155 Reputation points
accepted 2025-03-06T08:44:25.28+00:00
StewartBW 1,155 Reputation points
2 answers

When using IO.File.Copy in a vb.net application which is sheduled using the sheduled tasks is resetting (or removing?) permissions to that file

Hi all, I have following code snippet: IO.File.Copy(SourceFilePath, DestinationFilePath, OverWrite) It can be any file on any network drive on the network. However, my application is sheduled using the sheduled tasks MMC addon ON A DIFFERENT SERVER. My…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,792 questions
asked 2025-03-04T11:49:57.47+00:00
Aushyro 0 Reputation points
answered 2025-03-05T17:46:51.0333333+00:00
Aushyro 0 Reputation points
1 answer One of the answers was accepted by the question author.

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,792 questions
asked 2025-03-02T19:08:04.1533333+00:00
jacky Perpète 106 Reputation points
edited a comment 2025-03-05T17:08:32.11+00:00
jacky Perpète 106 Reputation points
1 answer

How to get VB 6.0

How and where do I get Visual Basic 6.0? Is it free or do I need to buy it? Can you give me a download link or a file?

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,792 questions
asked 2025-03-04T18:30:04.58+00:00
Максим Россиев 0 Reputation points
answered 2025-03-04T23:59:40.19+00:00
Castorix31 87,546 Reputation points
2 answers One of the answers was accepted by the question author.

How do I prevent Visual Studio from automatically adding unneeded includes in VB modules

I often copy modules from one project to another and often times Visual Studio will add several includes at the top of the class. When surveying through source code I find unnecessary includes have been added. If an include is needed I want compilation…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,447 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,792 questions
asked 2023-01-17T20:10:10.8+00:00
David McDivitt 221 Reputation points
answered 2025-03-04T11:42:37.5133333+00:00
Dirk Seynaeve 0 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,792 questions
asked 2021-04-05T20:03:13.747+00:00
Mugsy's RapSheet 176 Reputation points
commented 2025-03-02T14:26:49.38+00:00
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,792 questions
asked 2025-02-28T15:36:23.58+00:00
Torquinian 1 Reputation point
commented 2025-03-02T14:16:35.4166667+00:00
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,792 questions
asked 2025-02-27T13:14:21.2333333+00:00
MUSTAFA mjh 0 Reputation points
answered 2025-02-28T01:49:05.5933333+00:00
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,792 questions
asked 2025-02-21T04:06:35.0066667+00:00
fathima mahvish 0 Reputation points
commented 2025-02-27T07:48:51.5866667+00:00
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,792 questions
asked 2025-02-24T15:11:21.9433333+00:00
Kaleb Riley 0 Reputation points
answered 2025-02-25T02:34:12.57+00:00
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,792 questions
asked 2025-02-23T00:00:02.4866667+00:00
Mr Chan 1 Reputation point
answered 2025-02-24T08:58:18.16+00:00
RLWA32 47,441 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,792 questions
asked 2025-02-14T13:13:55.9033333+00:00
Andrew Mercer 506 Reputation points
accepted 2025-02-19T12:32:22.0133333+00:00
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,792 questions
asked 2025-02-18T23:08:28.06+00:00
Simflex 301 Reputation points
commented 2025-02-19T05:53:46.4133333+00:00
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,009 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,792 questions
asked 2025-02-11T23:38:43.0866667+00:00
BJ Harper 0 Reputation points
commented 2025-02-18T09:22:02.7733333+00:00
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,792 questions
asked 2024-06-17T00:32:04.99+00:00
StewartBW 1,155 Reputation points
edited an answer 2025-02-17T01:06:34.64+00:00
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,792 questions
asked 2021-10-20T10:04:09.073+00:00
Sanniddha Chakrabarti 36 Reputation points
commented 2025-02-13T12:13:33.72+00:00
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,736 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,792 questions
asked 2025-02-07T08:29:06.56+00:00
Arnau Pla 0 Reputation points
edited a comment 2025-02-10T08:17:16.3666667+00:00
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,792 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,198 questions
asked 2025-02-06T21:07:15.57+00:00
Clarence Parmar 20 Reputation points
commented 2025-02-09T21:44:21.32+00:00
Clarence Parmar 20 Reputation points