2,760 questions with VB-related tags

Sort by: Updated
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,052 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,760 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,052 questions
Access
Access
A family of Microsoft relational database management systems designed for ease of use.
420 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,760 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 32,961 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,760 questions
asked 2024-12-23T06:41:17.56+00:00
test code 1 Reputation point
edited an answer 2024-12-23T07:24:04.2366667+00:00
Jiachen Li-MSFT 32,961 Reputation points Microsoft Vendor
0 answers

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,012 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,316 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,760 questions
asked 2024-12-21T18:48:00.0333333+00:00
harshit singh 0 Reputation points
edited the question 2024-12-23T03:28:57.46+00:00
Ping Ni-MSFT 4,805 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,760 questions
asked 2024-12-16T17:31:54.6866667+00:00
Apostolos Doudakmanis 101 Reputation points
commented 2024-12-17T09:58:29.6666667+00:00
Apostolos Doudakmanis 101 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.
768 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,805 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,760 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.
824 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,645 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,915 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,760 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 100.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,961 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,760 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 32,961 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,760 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 32,961 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,760 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
3 answers

How to insert line break for send whatsapp message using vb.net

I want to send whatsapp message like below using VB.net LAUNDRY HOMES Invoice Number : 100006 Invoice Date : 07/30/2022 I have used following code but its not line breaking in whatsapp Dim web As New WebBrowser Dim strMessage As…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,760 questions
asked 2022-07-30T16:17:20.2+00:00
Thisara Udayanga 21 Reputation points
edited the question 2024-12-10T11:47:23.11+00:00
TP 100.9K Reputation points
4 answers One of the answers was accepted by the question author.

Information about local network devices with vb

on my local network devices (e.g. network printer, network scanner), how can i get the path, ip, mac address and any other information i can use

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,760 questions
asked 2024-12-06T08:19:09.4633333+00:00
Apostolos Doudakmanis 101 Reputation points
edited a comment 2024-12-06T22:03:22.0633333+00:00
Castorix31 86,486 Reputation points
1 answer

How can I programmatically call the windows dialog window: "Select an app to open this" which is used to set default programs?

Hello, How can I programmatically call the windows dialog window: "Select an app to open this" which is used to set default programs? I am looking for some example in c# or vb. Any assistance would be appreciated. Thank you in advance.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,157 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,760 questions
asked 2024-12-06T12:49:42.0933333+00:00
Hi MP_1_950 0 Reputation points
commented 2024-12-06T15:18:09.6133333+00:00
Castorix31 86,486 Reputation points
3 answers

i am getting this error

please give me some solution for SqlConnection, SqlCommand and Clear ()

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,915 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,012 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,223 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,760 questions
asked 2024-11-30T11:08:29.9066667+00:00
sayali dhanawade 20 Reputation points
edited the question 2024-12-06T06:28:48.6433333+00:00
Zhi Lv - MSFT 32,736 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

DataGridView column alignment header vs data

In the pic below, the DataGridView column header (Column1) is misaligned with the data cell text below it (XXX). The misalignment is nearly one character width. It is more visually obvious with a larger font. The pic comes from a minimal Forms app. …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,915 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,012 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,760 questions
asked 2024-05-23T15:21:45.1333333+00:00
Andrew Mercer 486 Reputation points
edited a comment 2024-12-05T18:23:27.83+00:00
Dessert Bar 5 Reputation points
1 answer

How can I make some space between labels both across and down in a FlowLayoutPanel

I have tried changing the margin and padding, but it changes nothing. there seems to always be a perfect space left-to-right but top to bottom the labels touch each other.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,760 questions
asked 2024-12-05T02:38:06.26+00:00
Devon Nullman 20 Reputation points
commented 2024-12-05T16:02:43.0066667+00:00
Devon Nullman 20 Reputation points
3 answers One of the answers was accepted by the question author.

Network device detection in vb.net

How do I find out if a device on the local network is a computer, motherboard, printer, scanner, mobile phone, smart TV with vb.net?

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,760 questions
asked 2024-12-03T14:12:54.34+00:00
Apostolos Doudakmanis 101 Reputation points
commented 2024-12-05T06:42:24.96+00:00
Apostolos Doudakmanis 101 Reputation points
1 answer One of the answers was accepted by the question author.

how do I declare a control in windows forms

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> Partial Class Form1 Inherits System.Windows.Forms.Form 'Form overrides dispose to clean up the component list. <System.Diagnostics.DebuggerNonUserCode()> Protected…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,654 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,760 questions
Microsoft Managed Desktop
Microsoft Managed Desktop
A cloud-based service that brings together Microsoft 365 Enterprise and adds these features: User device deployment; IT service management and operations; and Security monitoring and response.
59 questions
asked 2024-11-29T21:56:29.22+00:00
byStangz Stanley Grimes 20 Reputation points
accepted 2024-12-02T16:15:50.0966667+00:00
byStangz Stanley Grimes 20 Reputation points
1 answer

what library do I need to work with serial com ports

I want to open a comm port (usb port) to send commands to a controler box via Ascii text. I have about 50 commands and want to create a dropdown box to select those commands then send them through the USB port to the external device.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,760 questions
asked 2024-11-29T22:16:58.6966667+00:00
byStangz Stanley Grimes 20 Reputation points
answered 2024-11-30T09:35:12.6066667+00:00
Castorix31 86,486 Reputation points
1 answer One of the answers was accepted by the question author.

How to get the focus of a text box that is anywhere (such as: on a SplitContainer or any control that contains other controls)

Private Sub ToolStripButton1_Click(sender As Object, e As EventArgs) Handles ToolStripButton1.Click ActiveControl.Text += "A" End Sub

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,760 questions
asked 2024-11-29T05:43:40.42+00:00
Mansour_Dalir 1,996 Reputation points
accepted 2024-11-29T07:46:35.91+00:00
Mansour_Dalir 1,996 Reputation points