2,814 questions with VB-related tags

Sort by: Updated
2 answers

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,814 questions
asked 2025-04-08T11:07:25.46+00:00
V. Shane Curtis 0 Reputation points
answered 2025-04-08T18:04:32.9366667+00:00
V. Shane Curtis 0 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,814 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,814 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,814 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,814 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,814 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,814 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,814 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,814 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,814 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,366 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,814 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,814 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,814 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,814 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,814 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,814 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
2 answers One of the answers was accepted by the question author.

Retrieving top x process consuming most CPU, Memory, Disk and Network

Hi I need to obtain top x processes using the most CPU, Memory, Disk and Network. CPU I have working using Performance Counters and % Processor Time Memory I have working using Process.GetProcesses and looking at either PrivateMemorySize64 or…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,814 questions
asked 2025-03-14T10:31:28.26+00:00
Darren Rose 306 Reputation points
accepted 2025-03-17T20:36:18.38+00:00
Darren Rose 306 Reputation points
1 answer One of the answers was accepted by the question author.

How to temporarily pause processing

This question is about a mapping application I am writing, specifically how to coordinate processing and mouse actions. To add a new point to a map, this routine is called: Private Sub AddPoint() PostAllPoints() 'Show all existing…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,814 questions
asked 2025-03-16T18:03:34.8266667+00:00
RogerSchlueter-7899 1,426 Reputation points
commented 2025-03-17T17:56:27.5333333+00:00
RogerSchlueter-7899 1,426 Reputation points
0 answers

Using "settings" to save form location and size

I created 2 "settings", a system.drawing.point named FormLocation and a system.drawing.size named FormSize. they are used in the form.shown event to "remember' the size and location of the form and saved in the FormClosing event. This has…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,814 questions
asked 2025-03-14T19:16:05.56+00:00
Devon Nullman 20 Reputation points
commented 2025-03-17T09:31:28.8433333+00:00
Viorel 121K Reputation points
2 answers One of the answers was accepted by the question author.

My.Computer.Info.OSFullName

Hello Seems just like VB6, getting the OS Full Name is still challenging in .NET Framework! Possible to throw exception based on the WMI, possible to return the My.Computer.Info.OSPlatform instead which is useless, and will return the full name based 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,814 questions
asked 2025-03-12T23:57:36.56+00:00
StewartBW 1,335 Reputation points
commented 2025-03-15T17:00:48.41+00:00
StewartBW 1,335 Reputation points