2,818 questions with VB-related tags

Sort by: Updated
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,818 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,818 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.2K Reputation points
4 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,818 questions
asked 2025-04-09T01:16:00.2+00:00
V. Shane Curtis 0 Reputation points
answered 2025-04-14T19:10:22.5+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,818 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,818 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.2K 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,818 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

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,818 questions
asked 2025-04-04T13:07:29.95+00:00
StewartBW 1,335 Reputation points
answered 2025-04-08T06:49:03.12+00:00
Jiachen Li-MSFT 34,206 Reputation points Microsoft External Staff
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,818 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,818 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
1 answer One of the answers was accepted by the question author.

ASP/VBScript assistance - ASP not running. IIS 8 installed.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,818 questions
asked 2025-04-05T19:34:32.3666667+00:00
Justin F 20 Reputation points
commented 2025-04-06T04:47:14.26+00:00
Justin F 20 Reputation points
1 answer One of the answers was accepted by the question author.

manifest vs Visual Studio version?

Hi, Need to add dpiAware/dpiAwareness/longPathAware to the WinForms vb.net manifest, .net fw 4.8 in VS 2013 pro. asmv3: seems unsupported, so is this correct: <application> <windowsSettings> <dpiAware…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,818 questions
asked 2025-04-02T22:04:36.0133333+00:00
StewartBW 1,335 Reputation points
accepted 2025-04-03T13:13:27.8733333+00:00
StewartBW 1,335 Reputation points
2 answers

How to outsmart the long file name problem on FTP.

Hi there, Have a problem in transfering the files with the long path names to the FTPS/SFTP server. I know, this is the old problem of the Windows file names length limitation, raised the tons of info on the internet, but the problem still not…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,818 questions
asked 2025-04-01T06:24:07.88+00:00
Yefim Yakir 25 Reputation points
commented 2025-04-03T07:34:25.68+00:00
RLWA32 47,951 Reputation points
0 answers

X509Certificate2Collection.Import p7m Bug?

Hi X509Certificate2Collection.Import ("D:\smime.p7m", Nothing, X509KeyStorageFlags.UserKeySet Or X509KeyStorageFlags.Exportable) Always throw CryptographicException, but CryptographicException.Message is: The operation completed…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,818 questions
asked 2025-04-02T16:59:56.8866667+00:00
StewartBW 1,335 Reputation points
commented 2025-04-03T06:39:35.8066667+00:00
Jiachen Li-MSFT 34,206 Reputation points Microsoft External Staff
2 answers

Exception messages in en-US only

Hello I've placed an exception sender in my VB.net app which in case of exceptions, will send them to me to check, seems on localized systems, the messages are not in en-US and I get them like this: Exception Message: Erro genérico em GDI+. Root…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,818 questions
asked 2025-03-11T14:33:45.82+00:00
StewartBW 1,335 Reputation points
commented 2025-04-02T09:20:26.69+00:00
Jiachen Li-MSFT 34,206 Reputation points Microsoft External Staff
2 answers

Convert uris to links in html page

Hi, I have a very simple/basic html which has some uris inside, like this: <p>some text http://www.msn.com the rest</p> Need to convert the uris to links like this: http://www.msn.com/abc to: <a…

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,390 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,818 questions
asked 2023-01-17T16:57:52.6766667+00:00
S-Soft 666 Reputation points
answered 2025-03-28T09:48:08.39+00:00
Pravindra Yadav 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to Assign a Variable to a Tuple

Working with map data, this line of code gets elevation (and other) data: Dim PointData As ValueTuple = Await GetElevation(NewPoint) using this function: Private Async Function GetElevation(pt As Point) As Task(Of (Elevation As Double, Lat As Double,…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,818 questions
asked 2025-03-22T22:26:57.7666667+00:00
RogerSchlueter-7899 1,426 Reputation points
accepted 2025-03-23T17:41:49.3866667+00:00
RogerSchlueter-7899 1,426 Reputation points
1 answer One of the answers was accepted by the question author.

add row to datagridview

i have a vb.net app with a datagridview that is filled by a view with an underlying table. now i want to insert rows in the datagridview like in excel (under the selected row). i have the following code. Code: Private Sub BtnNewP_Click(sender As…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,818 questions
asked 2025-03-16T10:25:58.07+00:00
Kim 21 Reputation points
accepted 2025-03-23T11:36:08.0566667+00:00
Kim 21 Reputation points
1 answer One of the answers was accepted by the question author.

Calling Win32_CDROMDrive freezes the code if the optical drive is burning a disc

Hi Using MySearcher As New ManagementObjectSearcher(New SelectQuery("Win32_CDROMDrive")) For Each MyDisk As ManagementObject In MySearcher.Get() ' Just here the code execution hangs if the only optical drive is writing a Blu-ray…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,818 questions
asked 2025-03-19T01:05:06.53+00:00
StewartBW 1,335 Reputation points
accepted 2025-03-19T10:46:17.17+00:00
StewartBW 1,335 Reputation points
1 answer One of the answers was accepted by the question author.

Check if string contains non-ASCII

Hello To check if inside a string, there are any non-ASCII characters, is this code snippet ok? Encoding.UTF8.GetByteCount(inString) <> inString.Length = True/False False: full ANSI string True: string contains Non-ANSI characters Not sure what…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,818 questions
asked 2025-03-15T21:52:19.04+00:00
StewartBW 1,335 Reputation points
accepted 2025-03-19T00:57:52.3533333+00:00
StewartBW 1,335 Reputation points
1 answer

How can I remove an item from the items obtained from the main File Explorer menu (IContextMenu) and add a new item along with an icon?

Based on the answer already given (previous question), I wanted to customize the resulting items so that some of them are not visible and add a few of my own items so that I can do something from the click event on the custom item. If possible, please…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,818 questions
asked 2025-03-10T11:29:34.21+00:00
Mansour_Dalir 2,036 Reputation points
commented 2025-03-18T02:14:07.8566667+00:00
Jiachen Li-MSFT 34,206 Reputation points Microsoft External Staff