2,872 questions with VB-related tags

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

Leave input stream open

Hi After running this code, in VB.NET WinForms Framework 4.0 or 4.8, what happens to InputStream? It will be closed/disposed? I need to leave it open: Thanks. Using MyImage As Image = Image.FromStream(InputStream, False, False) End Using

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-06-07T09:08:18.6533333+00:00
StewartBW 1,560 Reputation points
accepted 2025-06-08T18:45:11.82+00:00
StewartBW 1,560 Reputation points
1 answer

BinaryReader in .Net Framework 4.0

Hi experts, In .NET Framework 4.8, I simply use: Using MyBinaryReader As New BinaryReader(InputStream, Encoding.ASCII, leaveOpen:=True) To leave the InputStream open afterward, however, in .NET Framework 4.0 there's no 3rd parameter so can't…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-06-07T11:48:17.93+00:00
StewartBW 1,560 Reputation points
commented 2025-06-08T18:21:06.6866667+00:00
StewartBW 1,560 Reputation points
0 answers

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…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-06-08T12:49:38.67+00:00
Nik Marien 0 Reputation points
4 answers

read the first 5 characters of file

hi, user might select any file type, with or without extension, need to get the 5 characters of file without opening and reading the whole file, like ReadAllText help 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,872 questions
asked 2022-11-13T19:23:43.683+00:00
S-Soft 666 Reputation points
answered 2025-06-08T07:42:01.65+00:00
milad nikoomanesh 0 Reputation points
0 answers

Why is a VB Project Running 3x Slower on Windows Server 2019 Compared to Windows Server 2008 R2?

I have a 64bit project, created using VS2022 and VB, which used to run on a Windows 2008 R2 server accessing a database on a different server. The project is now moving to run on a Windows 2019 Standard server, accessing that same database on 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,872 questions
asked 2025-06-05T15:02:55.19+00:00
Rob Birney 21 Reputation points
edited the question 2025-06-07T15:46:03.1033333+00:00
Rob Birney 21 Reputation points
1 answer

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.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-06-02T16:04:54.6866667+00:00
Simflex 321 Reputation points
answered 2025-06-07T08:03:33.87+00:00
KOZ6.0 6,655 Reputation points
0 answers

Highlight and Unhighlight in record navigation

Wasted my time here. No help offered so request withdrawn.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-06-04T13:35:32.8266667+00:00
Anonymous
edited the question 2025-06-06T12:56:13.9166667+00:00
Anonymous
1 answer

I can successfully connect to smtp.office365.com with OAuth and browse a mailbox but when I go to send mail I get a "Blocked" error

I can give the code to a colleague and he can run it and it works fine from his machine in India. I receive the colleague's email test fine to an outside mail server, which is a GoDaddy hosted email machine. But, when I try to run it I get this error…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-05-30T03:36:53.65+00:00
utiladmin 0 Reputation points
answered 2025-06-06T05:24:28.76+00:00
utiladmin 0 Reputation points
1 answer

Can't launch my app because of 'you must install .NET Desktop Runtime' popup

Hi everyone, I'm trying to run my application I've just installed on my computer but I'm having an issue with my .NET Runtime. I've been debugging this application in Visual Studio Community 2022 v17.10.2 and it works fine when I start it through Visual…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 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,872 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
287 questions
asked 2024-06-12T15:25:22.23+00:00
Connor Frayne 30 Reputation points
commented 2025-06-05T20:09:01.4966667+00:00
Nick 0 Reputation points
0 answers

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…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-06-04T21:29:07.1866667+00:00
Falanga, Rod, DOH 245 Reputation points
1 answer One of the answers was accepted by the question author.

How can I use ODBC in a Windows Form?

I am using VS2022 and VB. I have a Windows Forms project that currently Imports System.Data.sqlclient into each Form. I want to gradually move away from sqlclient to odbc, and my idea is to do it one Windows Form at a time as I hope to be able to Import…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-06-03T09:48:40.8566667+00:00
Torquinian 21 Reputation points
accepted 2025-06-04T08:01:25.6833333+00:00
Torquinian 21 Reputation points
0 answers

How to save a worksheet as pdf into a SharePoint list and include the metadata at the same time

I have written vba that saves the current worksheet in excel as a pdf to a SharePoint document list. I would like to save the metadata for the list at the same time. The metadata exists in named cells in the excel worksheet. This is the vb code I am…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-06-04T05:03:42.1233333+00:00
Maria Z 20 Reputation points
3 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,872 questions
asked 2024-01-29T18:32:44.9366667+00:00
Hassan Farouk 35 Reputation points
edited a comment 2025-06-03T15:33:15.06+00:00
Brandon Stewart 141 Reputation points
0 answers

How to write an entry to the Windows Security log shown by Event Viewer

A customer has engaged us to write a piece of software for them that can post entries to the Windows Security log in the Event Viewer (as opposed to the Application log). They're mostly a VB shop. With VB writing to the Windows Application log is…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-06-02T17:52:19.64+00:00
dcoup 0 Reputation points
edited a comment 2025-06-03T14:42:42.4666667+00:00
RLWA32 49,301 Reputation points
1 answer

is there a way in vba to copy a file from one directory to another as hyperlink?

My system has two drives, from which one contains the information and the other uses the information and saves possible changes in the second drive using other names. This way the original file is not being compromised and stays unchanged. I do not want…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-06-03T11:20:49.19+00:00
Christof Erban 0 Reputation points
commented 2025-06-03T13:23:17.64+00:00
Viorel 122K Reputation points
1 answer

How do I specify two different providerNames in VB project

I am using VS2022 and VB. I have a Windows Forms project that currently uses providerName=System.Data.sqlclient. I want to gradually move away from sqlclient to odbc, and my idea is to do it one Windows Form at a time as I will be able to Import 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,872 questions
asked 2025-06-02T08:27:05.14+00:00
Torquinian 21 Reputation points
answered 2025-06-03T09:41:26.9333333+00:00
Torquinian 21 Reputation points
1 answer

Disk defragnent library

how can i make a program to defragment disks i don't want to use System.Management

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-05-30T18:16:21.3133333+00:00
Apostolos Doudakmanis 121 Reputation points
commented 2025-06-02T19:55:57.83+00:00
Reza-Ameri 17,326 Reputation points Volunteer Moderator
1 answer One of the answers was accepted by the question author.

Assistance Resolving Errors

Hello, I've run into an odd situation and I'm hoping that someone can help me figure out what is going on. I have two VB.Net Class library projects. Individually they both compile without any errors. When I try to integrate the two projects together I…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-05-24T00:10:09.62+00:00
V. Shane Curtis 20 Reputation points
commented 2025-05-30T19:47:24.8433333+00:00
V. Shane Curtis 20 Reputation points
1 answer

error in vb.net 2022 BC30456

Designer will not show the form, comes up with error BC30456 stating that a text box is not a member of the form. It will let me see it in the designer code but i cant rem it out to see the GUI and delete the text box.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2025-05-30T13:05:01.6133333+00:00
Bill Spitzmacher 0 Reputation points
answered 2025-05-30T14:50:56.5133333+00:00
Bill Spitzmacher 0 Reputation points
5 answers

VB.Net label not showing

Afternoon all. I'm hoping someone can help me with this annoyance. Basically where i have the line  LblStatus.Text = "check IP address!", this only displays if i have exit sub after it. If i take that away, then this message never shows.…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,872 questions
asked 2021-06-14T14:54:31.173+00:00
Simon Scott 306 Reputation points
commented 2025-05-30T06:35:48.68+00:00
Saideep Anchuri 7,755 Reputation points Microsoft External Staff Moderator