2,827 questions with VB-related tags

Sort by: Updated
0 answers

Index Files and then Search Index Efficient

I am attempting to build a file command index for searching. I have the following code; however it consumes system resources and freezes the program at times. `Private Sub ListBackgroundWorker_DoWork(sender As Object, e As DoWorkEventArgs) Handles…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-24T01:14:52.99+00:00
Marc Menzel 101 Reputation points
commented 2025-04-24T07:01:07.7+00:00
Marc Menzel 101 Reputation points
0 answers

WinForms TabControl set ShowFocusCues to false?

Hello, I have difficulties hiding the focus cues around the tab page items of TabControl. Here seems possible: https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.tabcontrol?view=netframework-4.8 But my code won't work, anyone can help…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-24T00:25:56.84+00:00
StewartBW 1,360 Reputation points
1 answer

CustomDocumentProperties inaccessible through Mac VBA for Excel

The following VBA code does not work on Mac Excel since the latest Microsoft update. It continues to work on the windows version of Excel. I have libraries of code that rely on document properties that have been running for a couple of years. Sub test() …

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-21T12:37:52.1366667+00:00
Daniel G Brown 20 Reputation points
commented 2025-04-23T19:05:08.57+00:00
Daniel G Brown 20 Reputation points
0 answers

Preventing Image.FromFile exception in VB 2022 when the file does not have a valid image format

The Visual Basic 2022 Image.FromFile method throws an​ OutOfMemoryException if the file does not have a valid image format. Is there a way to determine in advance whether the candidate file​ has a "valid image format"? At present I'm using a…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-23T16:47:11.57+00:00
Ron Sipherd 276 Reputation points
edited the question 2025-04-23T16:48:15.15+00:00
Ron Sipherd 276 Reputation points
0 answers

WinForms UWP app 2 issues

Hi all My WinForms .NetFw 4.8 app is installed with msi, I've created an msix installer and it installs to Windows Apps just fine, with a few issues: When I request to read/write: AppData Local It's redirected to: AppData Local Packages id LocalCache…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-22T22:27:38.8766667+00:00
StewartBW 1,360 Reputation points
edited the question 2025-04-22T23:02:20.3966667+00:00
StewartBW 1,360 Reputation points
1 answer

WinApp Cert Kit Failure

Hey all, <> contains a reference to a Launch Process related API System Diagnostics Process Start I just use it for opening web pages: Process Start ("url link") In .Net Framework 4.8 WinForms app, is there a replacement for opening web…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-04T13:07:29.95+00:00
StewartBW 1,360 Reputation points
commented 2025-04-22T22:57:51.8166667+00:00
StewartBW 1,360 Reputation points
1 answer One of the answers was accepted by the question author.

Read icon from a ListView?

I have a ListView that displays a checkbox, icon, and name of every png in a user-selected folder. On the form is an Imagebox named "picPreview". I want to display an enlarged preview of the icon on the form when I hover over each item in the…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-20T00:07:14.73+00:00
Mugsy's RapSheet 196 Reputation points
commented 2025-04-22T00:57:39.97+00:00
Mugsy's RapSheet 196 Reputation points
1 answer One of the answers was accepted by the question author.

Blocking Mouse Hook for a vb.net application when the task manager has focus.

Hello, For a VB.NET application with WPF, I'm using a transparent window that follows the movement of the mouse cursor on the screen. This application uses the mouse hook to handle the move event. This window represents a custom cursor. This test…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-18T09:07:49.86+00:00
jacky Perpète 126 Reputation points
edited a comment 2025-04-21T04:17:19.59+00:00
jacky Perpète 126 Reputation points
3 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,176 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,827 questions
asked 2025-02-01T16:04:12.8266667+00:00
joep kint 20 Reputation points
answered 2025-04-20T18:01:24.2166667+00:00
Kadir Güler 0 Reputation points
1 answer One of the answers was accepted by the question author.

WebClient to HttpClient

Hi On Microsoft docs, it's mentioned that WebClient should not be used anymore, and HttpClient is recommended to use, but it does not have DownloadStringAsync and DownloadFileAsync methods, are they somewhere else I can't find? Thanks.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-18T01:12:54.2933333+00:00
StewartBW 1,360 Reputation points
accepted 2025-04-18T16:06:02.47+00:00
StewartBW 1,360 Reputation points
1 answer

Range.Find() triggers on wrong date, what options do we have?

Within a tool I'm opening the weekly hours and declarations and search for booked hours/holidays etc. For some reason the ....range.find() method finds that 22-2-2025 (Februari) from the weekly report is equal to 22-12-2025 (December) from the dates in…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-18T13:17:12.3+00:00
Ludo Houben 0 Reputation points
edited an answer 2025-04-18T15:20:47.9766667+00:00
Viorel 121.3K Reputation points
4 answers One of the answers was accepted by the question author.

Why isn't Visual Basic developed like C#?

In fact, I feel very upset with Microsoft's strategy towards the Visual Basic language. You are practicing euthanasia for this language and losing a large base of programmers who prefer to deal with this language. You have wasted the expertise of these…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 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,827 questions
asked 2024-01-29T18:32:44.9366667+00:00
Hassan Farouk 25 Reputation points
commented 2025-04-16T16:00:45.5433333+00:00
Hassan Farouk 25 Reputation points
0 answers

Why is a Completed Task Halting Processing

Working with a map application, I am trying to allow the user to click on a series of points on a map to create a line segment. With the help here, I have the following code: PrivateCreatingPoint As TaskCompletionSource(Of Point) Private Sub…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-12T05:49:07.7466667+00:00
RogerSchlueter-7899 1,426 Reputation points
commented 2025-04-15T10:57:49.3833333+00:00
RogerSchlueter-7899 1,426 Reputation points
0 answers

MouseWheeL not Working

I want to Add mouse wheel scroll in My Visual Basic Form , how to enable the Mouse wheel, i tried but unable to access it, i have big size form so i used vertical scroll bar for scrolling form, but unable to access that scroll bar by Mousewheel, while…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-15T06:59:05.73+00:00
Gokul Raj 0 Reputation points
commented 2025-04-15T09:23:00.9766667+00:00
Viorel 121.3K Reputation points
2 answers

Implement Dark Mode In VS2022 VB Project

Hello Is there any way to implement Dark Mode in a VB 2022 project? I have cataracts and the glare from a white form is blinding. I have implemented Dark Mode in Windows and in every app that supports it. I need it at the project level. Any help…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-09T01:16:00.2+00:00
V. Shane Curtis 0 Reputation points
commented 2025-04-14T16:41:15.98+00:00
V. Shane Curtis 0 Reputation points
1 answer

My.Computer not working in VS2022 desktop app

Hello, I am having issues with using My.computer in my app. It generates an error that indicates that it's not defined. I know that it has something to do with the version of the .Net SDK being used in my app. Older apps that use older versions of the…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-08T11:07:25.46+00:00
V. Shane Curtis 0 Reputation points
commented 2025-04-11T07:54:38.6133333+00:00
Anonymous
1 answer

How to read all lines of a file using async and await in VB.NET

How can I convert the Following Code into code that uses async and await? `Public Function GetFileText()` Return File.ReadAllLines(FileItemListPath) End Function Dim ListLines() As String = GetFileText()

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-09T02:33:58.24+00:00
Marc Menzel 101 Reputation points
edited an answer 2025-04-09T06:56:57.1466667+00:00
Viorel 121.3K Reputation points
0 answers

XInputGetAudioDeviceIds

Hi all, I've converted this code to VB.net and it works fine: https://www.codeproject.com/Articles/492473/Using-XInput-to-access-an-Xbox-360-Controller-in-M But XInputGetAudioDeviceIds is missing from…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-08T15:02:53.8266667+00:00
OSVBNET 1,386 Reputation points
edited the question 2025-04-08T15:25:32.31+00:00
OSVBNET 1,386 Reputation points
1 answer

where can I download vb powerpacks v9.0

where can I download vb powerpacks v9.0? powerpacks v12 dose not works under visualstudio 2022. it has been working under vs2019. someone says vb powerpacks v9.0 works fine with vs 2022.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-07T08:33:07.0066667+00:00
이건영 0 Reputation points
edited an answer 2025-04-08T02:53:56.6666667+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft External Staff
0 answers

Sudden VB6 run-time error 48 on Windows 11

I have a VB6 program that I wrote years ago and update often. I use it frequently twice a year to run fundraisers for several local non-profits. The last fundraising effort ended several weeks ago (thankfully), and I have used the program daily since to…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
asked 2025-04-04T16:20:20.9066667+00:00
Rich Goldberg 161 Reputation points
commented 2025-04-07T01:18:32.0333333+00:00
Jiachen Li-MSFT 34,206 Reputation points Microsoft External Staff