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
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
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
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
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
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
Highlight and Unhighlight in record navigation
Wasted my time here. No help offered so request withdrawn.
VB
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
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
Visual Studio
VB
Visual Studio Extensions
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
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
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
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…
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
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

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
Disk defragnent library
how can i make a program to defragment disks i don't want to use System.Management
VB
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
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.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.…