2,767 questions with VB-related tags

Sort by: Updated
0 answers

In a Class change console message for textbox message yes or no, VB2017 Vb.Net

I want to delete a table in a database if it exists, with a textbox (yes or no) to create a new one programmatically. If the table exists "delete it" with the condition (yes), if this table does no exists with option no create a new one. For…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,053 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,767 questions
asked 2025-01-18T03:51:01.44+00:00
MannySo 25 Reputation points
1 answer

Developing Cross-Platform MAUI Applications with VB.NET

Is it possible to develop cross-platform MAUI applications using VB.NET? Guidance and resources on this topic have been difficult to find.

Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
82 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,831 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,767 questions
asked 2025-01-17T18:15:22.62+00:00
whvbntsql 0 Reputation points
edited the question 2025-01-17T21:53:00.1+00:00
Erland Sommarskog 115.6K Reputation points MVP
1 answer

VS 2019 always crashes whenever I try to open this one solution

I am tasked with maintaining an old VB.NET ASP.NET WebForms application. It has 9 projects within the solution. It is at least 15 years old, which is longer than I have been employed in this position. None of the original developers are around. They left…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,566 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,767 questions
asked 2025-01-10T20:34:16.4966667+00:00
Falanga, Rod, DOH 260 Reputation points
commented 2025-01-16T20:10:13.3866667+00:00
Falanga, Rod, DOH 260 Reputation points
2 answers

Where can a commercial license purchased for Visual Basic 6?

We need a commercial license for VB6. Is there any way to purchase one?

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,767 questions
asked 2025-01-14T19:01:45.19+00:00
Holger Boskugel 0 Reputation points
answered 2025-01-15T06:54:22.26+00:00
Olaf Helper 45,626 Reputation points
2 answers One of the answers was accepted by the question author.

How do I update DBContext after adding new table to SQL database?

We added a new table to our SQL Server database called Occupation. From the ASP.NET Web Form project, I can not seem to access it. Imports System.Data.Entity Public Class CCDBContext Inherits DbContext Public Sub New() …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,566 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,767 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,675 questions
asked 2025-01-11T17:50:11.4366667+00:00
Joe Pool (Heartland) 20 Reputation points
commented 2025-01-13T14:35:25.85+00:00
Joe Pool (Heartland) 20 Reputation points
3 answers One of the answers was accepted by the question author.

search in DataGridView

Hello experts I need to select some DataGridView rows based on the user text input, some sort of search, so: For loop As Integer = 0 To DataGridView.Rows.Count - 1 If DataGridView.Item(0,…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,767 questions
asked 2024-06-20T05:13:49.44+00:00
StewartBW 1,150 Reputation points
commented 2025-01-12T18:18:13.9633333+00:00
William César Pádua Ribeiro 0 Reputation points
3 answers

How to use WPF Mouse.OverrideCursor in a VB.NET application

I tried a sample WPF code, that Kareninstructor recommended to me, from https://github.com/karenpayneoregon/visual-basic-getting-started/tree/master/ChangeCursor to test the usage of Mouse.OverrideCursor - this worked beautifully. However, it is a…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,812 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,767 questions
asked 2021-01-27T21:30:00.707+00:00
Jim Webb 41 Reputation points
edited the question 2025-01-12T17:42:01.4666667+00:00
TP 101.9K Reputation points
1 answer One of the answers was accepted by the question author.

Can I backup my programming some easy way?

Two years ago I lost all my programming that I worked on for two years. Apparently, when you start a new project in VS, the old project is lost. I tried to get it back, but never found it. So I quitted using VS and programming. Yesterday, I decided 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,767 questions
asked 2021-02-06T08:38:28.607+00:00
dick zelvelder 21 Reputation points
commented 2025-01-07T21:41:35.51+00:00
Loshento 0 Reputation points
1 answer One of the answers was accepted by the question author.

Must declare the scalar variable "@n"

Receive the above error generated by the code below. Dim objCommand As SqlCommand = New SqlCommand Dim Connection1 As New SqlConnection(ConnectionString) objCommand.CommandText = "UPDATE names " & "SET n.cc_date = @n.cc_date,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,053 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,318 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,767 questions
asked 2025-01-07T16:18:18.84+00:00
SuperCoder 176 Reputation points
commented 2025-01-07T18:00:28.9566667+00:00
Dan Guzman 9,251 Reputation points
3 answers One of the answers was accepted by the question author.

how is way to create menus on a aspx page

i am using vb.net 2022 and renamed the extantion of a form to aspx now how is posible to create menus on this page

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,566 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,767 questions
asked 2024-12-03T15:17:52.7933333+00:00
Simon 346 Reputation points
edited the question 2025-01-02T02:24:29.3233333+00:00
Jack J Jun 24,626 Reputation points Microsoft Vendor
1 answer

error in visual studio regarding "object reference not set to an instance of an object" while making vb.net project

regarding "object reference not set to an instance of an object" while making vb.net project

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,053 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,356 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,767 questions
asked 2024-12-21T18:48:00.0333333+00:00
harshit singh 0 Reputation points
answered 2025-01-01T08:31:32.6666667+00:00
Jiachen Li-MSFT 33,121 Reputation points Microsoft Vendor
1 answer

Method to find the exact line of code that caused an error in VB.NET using Try Catch

When an error occurs while executing the project (in this case, dividing by zero), the message box displays the exception details, including the file path, procedure and line number where the error occurred, such as "Form1.vb:line 5".…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,767 questions
asked 2024-12-23T06:41:17.56+00:00
test code 1 Reputation point
edited a comment 2024-12-31T03:04:14.4566667+00:00
Jiachen Li-MSFT 33,121 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to make changes in Excel sheets only with Visual Basic .NET (Only Programing)

hi I want to have all kinds of changes in the sheets by programming. But the user cannot edit the cells in Excel itself. All edits should be programming only.

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,088 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,767 questions
asked 2024-01-15T11:30:17.4866667+00:00
Mansour_Dalir 1,996 Reputation points
commented 2024-12-27T21:20:30.24+00:00
Jim Reid 0 Reputation points
1 answer

Microsoft Excel cannot access the file ' SegmentExport2_d0ad8d.xlsx'. There are several possible reasons: • The file name or path does not exist. • The file is being used by another program. • The workbook you are try

HI Web application Hosted on IIS Server and when i am trying to open the excel file from vb .net code getting Microsoft Excel cannot access the file 'E:\inetpub\Sites\iHomeSite\main\Macros\SegmentExport2_d0ad8d.xlsx'. There are several possible reasons:…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,088 questions
Access
Access
A family of Microsoft relational database management systems designed for ease of use.
428 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,767 questions
asked 2024-12-20T17:32:35.5733333+00:00
Sangtani, Payal (CSW) 0 Reputation points
commented 2024-12-24T03:18:40.6433333+00:00
Jiachen Li-MSFT 33,121 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Scanner status detection

How can I identify the status of a scanner, i.e. if it is active, if it is closed, or if it is on standby? without ManagementObject

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,767 questions
asked 2024-12-16T17:31:54.6866667+00:00
Apostolos Doudakmanis 121 Reputation points
commented 2024-12-17T09:58:29.6666667+00:00
Apostolos Doudakmanis 121 Reputation points
1 answer

After migrating to VB.NET Core 9.0 from 8.0, I am getting error messages on menu bindings

After migrating from version 8.0 to version 9.0, I am getting error messages related to the binding of menu items. I am working with Visual Studio 17.12.3 and .NET Core 9.0.101 on a Windows 11 (23H2) machine. Further down in the XAML code, I have the…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
771 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,812 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,767 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
828 questions
asked 2024-12-07T10:11:36.7266667+00:00
Mike van der Waard 0 Reputation points
commented 2024-12-16T01:03:26.5166667+00:00
Hongrui Yu-MSFT 3,965 Reputation points Microsoft Vendor
2 answers

Exception when using Firebase streaming

Hi, When I try to read data from Firebase using FirebaseDatabase.net Library I receive Newtonsoft.Json.JsonReaderException exeptionn this code works Imports Firebase.Database Imports Firebase.Database.Query Public Class Form1 Private Async Sub…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,918 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,767 questions
asked 2024-10-18T05:54:17.3033333+00:00
Yusuf-3141 50 Reputation points
edited the question 2024-12-13T12:18:35.1866667+00:00
TP 101.9K Reputation points
1 answer

SSRS GetParameters() returns empty string/ null.

SSRS report when requested for parameter columns using GetParameters() method returns empty string. This is inconsistently causing application errors. Looking for some help. We are invoking the below method within our PowerBuilder code by connecting to…

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,972 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,767 questions
asked 2024-12-10T13:10:22.3+00:00
Ram PS 0 Reputation points
commented 2024-12-12T07:06:00.6533333+00:00
Jiachen Li-MSFT 33,121 Reputation points Microsoft Vendor
2 answers

Cell Duplication Issue in DataGridView During Fast Scrolling in Fullscreen Mode with VB.NET

Hi everyone, I’m encountering an issue with the DataGridView in my VB.NET app. When scrolling quickly in fullscreen mode, some cells get duplicated. The faster I scroll, the worse the issue becomes. Interestingly, this does not happen when the window 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,767 questions
asked 2024-12-05T14:06:10.9566667+00:00
Christoph 0 Reputation points
commented 2024-12-11T02:15:12.4966667+00:00
Jiachen Li-MSFT 33,121 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to use OpenXML SDK in a vb.net project to change custom properties of .docx files?

I'm working on a vb.net project that is supposed to use OpenXML SDK to alter custom file properties of a .docx file. Once I have the document open as a 'WordprocessingDocument`, how do I access the custom file properties?

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,767 questions
asked 2024-12-06T19:28:25.2+00:00
Aaron Gerber 20 Reputation points
edited a comment 2024-12-10T13:16:16.0266667+00:00
Aaron Gerber 20 Reputation points