2,794 questions with VB-related tags

Sort by: Updated
0 answers

Retrieve health information e.g. SMART, remaining live, reallocated sectors etc for all types of HDD, SSD, NvME etc

Any suggestions on reliable solutions to retrieve health information e.g. SMART, remaining live, reallocated sectors etc for all types of HDD, SSD, NvME etc Tried smartmontools but doesn't work for a lot of NvME drives as get…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,794 questions
asked 2025-03-09T13:56:01.39+00:00
Darren Rose 261 Reputation points
commented 2025-03-09T17:30:54.94+00:00
Darren Rose 261 Reputation points
1 answer One of the answers was accepted by the question author.

Loop through and read adapters

Hello Because WMI Win32_VideoController AdapterRAM property cannot read more than 4GB of memory, I'm going to read Keys here: HKLM\SYSTEM\ControlSet001\Control\Class{4d36e968-e325-11ce-bfc1-08002be10318} There's 2 samples in PowerShell posted on…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,794 questions
asked 2025-03-07T20:19:13.4066667+00:00
StewartBW 1,195 Reputation points
commented 2025-03-08T13:33:40.1666667+00:00
Castorix31 87,706 Reputation points
2 answers One of the answers was accepted by the question author.

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,794 questions
asked 2025-03-06T11:39:55.11+00:00
Mansour_Dalir 2,036 Reputation points
commented 2025-03-08T02:28:02.9133333+00:00
Castorix31 87,706 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,794 questions
asked 2025-03-05T13:27:53.0966667+00:00
Godwin, Jeff 20 Reputation points
accepted 2025-03-06T13:21:33.39+00:00
Godwin, Jeff 20 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,794 questions
asked 2025-03-05T19:37:40.9233333+00:00
StewartBW 1,195 Reputation points
accepted 2025-03-06T08:44:25.28+00:00
StewartBW 1,195 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,794 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,794 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,794 questions
asked 2025-03-04T18:30:04.58+00:00
Максим Россиев 0 Reputation points
answered 2025-03-04T23:59:40.19+00:00
Castorix31 87,706 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,794 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,794 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,794 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,794 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,701 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,794 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,701 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,794 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,701 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,794 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,521 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,794 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,794 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,906 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,103 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,008 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,794 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,701 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,794 questions
asked 2024-06-17T00:32:04.99+00:00
StewartBW 1,195 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,794 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