2,903 questions with Developer technologies | VB tags

Sort by: Updated
1 answer

Keeping a procedure argument ByRef while setting it to a class variable

My question is how do I keep an argument passed to a procedure by reference as a "pointer" when I want to save the procedure's ByRef argument out to a class variable? My desire is then to keep a variable ByRef when passed out of the procedure…

Developer technologies | VB
asked 2025-09-14T17:30:06+00:00
Glenn T. Kitchen 0 Reputation points
edited the question 2025-09-15T04:37:25.18+00:00
Rob Caplan - MSFT 6,127 Reputation points Microsoft Employee Moderator
1 answer

How to make a google form as Payment Receipt Register linking excel sheet having customer , salesman list to auto select the information,

// ====================== Payment Collection Register Script ====================== // This script automates: // 1. Receipt Date auto-fill (today's date, admin-only editable) // 2. Auto update of "Total in Words" in footer (Row 105, Column…

Developer technologies | VB
asked 2025-09-04T08:36:39.2333333+00:00
Bashir A. Zaroo 0 Reputation points
commented 2025-09-12T06:22:58.6466667+00:00
Susmitha T (INFOSYS LIMITED) 655 Reputation points Microsoft External Staff
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…

Developer technologies | VB
Developer technologies | Visual Studio | Other
asked 2023-01-17T20:10:10.8+00:00
David McDivitt 221 Reputation points
commented 2025-09-03T12:00:07.52+00:00
Mark Prichard 0 Reputation points
1 answer

Setup was unable to create a DCOM user account in order to...vb6

Setup was unable to create a DCOM user account in order to... Fix this problem!

Developer technologies | VB
asked 2025-09-01T04:17:39.96+00:00
Kawsar Siddiqui 6 Reputation points
edited the question 2025-09-01T10:23:59.8133333+00:00
Gérard Oomens 107.8K Reputation points Volunteer Moderator
2 answers 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
answered 2025-08-29T14:02:17.47+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) 645 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 40 Reputation points
accepted 2025-08-15T13:49:28.2233333+00:00
Dave Post 40 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,440 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) 415 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) 415 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 124K 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
mudinaman143 20 Reputation points
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