2,900 questions with Developer technologies | VB tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

WebView2 with Custom ContextMenuStrip in VB.net

How can I add my own ContextMenuStrip to WebView2 on vb.net.

Developer technologies | VB
asked 2025-08-25T15:02:32.33+00:00
Apostolos Doudakmanis 141 Reputation points
accepted 2025-08-27T14:01:10.8166667+00:00
Apostolos Doudakmanis 141 Reputation points
1 answer One of the answers was accepted by the question author.

Excel Interop throws exception with reference added

Hi, I am trying to develop a vb.net application to open an XLSX file, change every occurrence of a label in the file, then save the file. See the exception I am receiving. I have included the Imports Microsoft.Office.Interop.Excel and a COM reference to…

Developer technologies | VB
asked 2025-08-17T21:21:28.12+00:00
Bruce Bachtell 21 Reputation points
commented 2025-08-25T03:48:42.6933333+00:00
Gade Harika (INFOSYS LIMITED) 490 Reputation points Microsoft External Staff
1 answer

What do I need to have access to VB6 development tools?

I need to do some development on a VB6 application. I am trying to arrive at the required tools and such that will get me to Visual Studio with VB6 development capacity. What do I need and how do I get access to the require toolset.

Developer technologies | VB
asked 2025-08-15T22:11:33.0666667+00:00
gregg wonderly 0 Reputation points
edited a comment 2025-08-18T21:28:19.4566667+00:00
gregg wonderly 0 Reputation points
6 answers One of the answers was accepted by the question author.

Excel VBA: Can my VBA code determine whether Solver is running?

Is there a way to test whether Solver is running? I have a section of VBA code that must be skipped if Solver is running. I'm using MS Office LTSC Professional Plus 2024 (Windows).

Developer technologies | VB
asked 2025-08-09T18:42:52.5233333+00:00
Dave Post 20 Reputation points
accepted 2025-08-15T13:49:28.2233333+00:00
Dave Post 20 Reputation points
3 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…

Developer technologies | VB
Developer technologies | ASP.NET | Other
asked 2025-02-18T23:08:28.06+00:00
Simflex 326 Reputation points
commented 2025-08-07T10:33:40.5733333+00:00
Danny Nguyen (WICLOUD CORPORATION) 1,030 Reputation points Microsoft External Staff
4 answers

Access database set Default Value of a short text field of another short text field

Hi there I have an access database with a short text field called TM Description. I have created another short text field called BrandingDescription that I want to set the Default Value to the text entered in TM Description, ie the two fields would show…

Developer technologies | VB
asked 2025-07-17T01:56:55.08+00:00
Emily Williams 0 Reputation points
commented 2025-08-04T03:52:04.0866667+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 255 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

WebRequest Migration to HTTPClient - Needing Feedback to Calling Function

Hello.. I have some code migrating from VS Studio 2013 to VS Studio 2022. Seeing that WebReq has been deprecated. Working to migrate to HTTPClient. Seems that httpclient is async only, I am guessing here... My overall code is written to call a RoboCall…

Developer technologies | VB
asked 2025-07-28T16:12:50.4066667+00:00
Smith, Jeffery Thomas (Jeff) 156 Reputation points
accepted 2025-07-31T14:10:11.58+00:00
Smith, Jeffery Thomas (Jeff) 156 Reputation points
1 answer

VBA oledb open connection became slow

In my VBA project the opening of the OLEDB-connection has become really slow. (In the past it worked fast but since some months it has become slow.) It takes 13 seconds to just open the connection. I have tried this with only this coding in my project…

Developer technologies | VB
asked 2025-06-08T12:49:38.67+00:00
Nik Marien 5 Reputation points
answered 2025-07-30T18:27:03.0166667+00:00
Nik Marien 5 Reputation points
1 answer

Windows Shutdown

I have a small app written in .NET 9, VB. The app does use an xml data file. When shutting down the computer, this app prevents windows from shutting down to allow user to save work. This is despite the fact that NO data saving is required at the time…

Developer technologies | VB
asked 2025-07-11T09:59:41.2133333+00:00
Ford Prefect 20 Reputation points
commented 2025-07-30T15:38:39.87+00:00
Ford Prefect 20 Reputation points
2 answers One of the answers was accepted by the question author.

I'd like to know how VB.NET handles cookies

I maintain an old VB.NET WebForms app. I'm converting it to C# and updating it. However, when it comes to converting how the old app handled browser cookies and how to make the same thing work in a C# Blazor app, I am not sure how to proceed. Here's a…

Developer technologies | VB
asked 2025-06-04T21:29:07.1866667+00:00
Falanga, Rod, DOH 290 Reputation points
accepted 2025-07-17T13:37:36.4133333+00:00
Falanga, Rod, DOH 290 Reputation points
3 answers One of the answers was accepted by the question author.

Update tables linked in Access using VB.NET

I have an Access DB that has linked tables to other access DBs and links to Excel spreadsheets. I would like to scan the links, using vb.net, and validate that they are pointing to the current location of the files. If not I want to change the link…

Microsoft 365 and Office | Access | Development
Developer technologies | VB
asked 2021-10-16T22:11:13.52+00:00
Don Glover 516 Reputation points
commented 2025-07-16T14:38:29.5066667+00:00
Ryan Kristoffer M. Liray 5 Reputation points
3 answers

How to insert two or more different values under one column name based on parent PK?

Greetings experts, We are designing internal ballot system that will be used to elect members into various positions based on election types.

Developer technologies | VB
asked 2025-06-02T16:04:54.6866667+00:00
Simflex 326 Reputation points
commented 2025-07-14T08:54:55.3866667+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 255 Reputation points Microsoft External Staff
4 answers

What can I do with white space in the connection string?

I wrote a small application in VB.NET (VS 2022), and it worked well with the connection string without white space. When I put it in the folder with spaces and that is where I have issues with it. How do I solve this issue with the white space? I do…

Developer technologies | VB
asked 2025-07-10T14:15:11.6133333+00:00
Bob Vu 0 Reputation points
commented 2025-07-11T15:15:27.6533333+00:00
Viorel 123.8K Reputation points
3 answers

Value cannot be null. Parameter name: format visual studio 2022

I can create new and work in projects, I can save them and send them to my instructor and they can open them, but whenever I try to open one of my own projects again I get this: at System.String.FormatHelper(IFormatProvider provider, String format,…

Developer technologies | VB
asked 2022-02-27T00:29:55.197+00:00
John Rinaldo 6 Reputation points
commented 2025-06-25T22:14:19.5233333+00:00
Will Howard 0 Reputation points
1 answer

Request for Assistance with App Service Performance – High Time in ManagedPipelineHandler

Experiencing performance issues with an Azure App Service. Analysis revealed 4 slow request(s) where the module consuming the most time is: ManagedPipelineHandler (57.1%) The diagnostic message indicates: "To troubleshoot performance issues or to…

Developer technologies | VB
asked 2025-06-24T02:31:34.4266667+00:00
SK Tang 0 Reputation points
answered 2025-06-24T02:36:41.5266667+00:00
1 answer One of the answers was accepted by the question author.

Get-StorageReliabilityCounter equivalent

Hi, These ps commands work fine, but I'm trying to get the StorageReliabilityCounter values in WinForms, and there's not a single working sample out there, do I need both MSFT_Disk and MSFT_DiskToStorageReliabilityCounter classes? If so, how to connect…

Developer technologies | VB
asked 2025-06-20T15:24:56.1333333+00:00
StewartBW 1,895 Reputation points
commented 2025-06-21T18:54:03.2766667+00:00
StewartBW 1,895 Reputation points
2 answers

Can we get Visual basic 6.0 download for the product itself ?

We have couple of visual basic 6.0 applications being used in our organization. Is the download of Visual basic 6.0 still available ?

Developer technologies | VB
asked 2025-06-20T12:07:41.7133333+00:00
Madhuri Amrutavakkula 0 Reputation points
answered 2025-06-20T14:23:08.7933333+00:00
Castorix31 91,066 Reputation points
1 answer One of the answers was accepted by the question author.

Get free/used size of a whole disk

Hi On systems with multiple HDD/SSD disks, I need to get the total size and free or used size of the disk which system drive is in. Using MySearcher As New ManagementObjectSearcher("root\Microsoft\Windows\Storage", "SELECT * FROM…

Developer technologies | VB
asked 2025-06-17T13:37:52.99+00:00
StewartBW 1,895 Reputation points
commented 2025-06-20T02:11:29.9566667+00:00
StewartBW 1,895 Reputation points
0 answers

VBA: Word Application.WindowSize event does not work on Mac

I have implemented Word Application.WindowSize event, according to…

Developer technologies | VB
asked 2025-06-18T14:50:18.08+00:00
Eugene Z 20 Reputation points
0 answers

VBA: Saving Excel file does not work on Mac, if the destination is in local OneDrive folder

Summary: writing Excel workbook fails, if the destination is under OneDrive, only on Mac, and only if the destination file does not already exist. I have a test routine that reads and writes Excel files (see the end of the post). The source and…

Developer technologies | VB
asked 2025-06-18T14:36:50.9366667+00:00
Eugene Z 20 Reputation points