2,657 questions with VB-related tags

Sort by: Updated
0 answers

How to find where my code gets into an infinite loop

My Visual Basic code is getting stuck somewhere and never finishes. This only happens with one particular input, otherwise it works. I'd like to know at what routine the code is getting stuck. I looked for advice on the web, and it says that when…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,598 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,851 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,657 questions
asked 2024-07-13T13:13:22.4633333+00:00
rael isaac 21 Reputation points
edited the question 2024-07-15T02:10:27.5266667+00:00
Jiale Xue - MSFT 42,401 Reputation points Microsoft Vendor
1 answer

BC42017 Late bound resolution; runtime errors could occur

Hello friends, I am programming with VB.NET 2022. In this line of code: With BsQRequestPorductHeader TxtRequestPorductHeaderId.Text = .Current.Item("RequestPorductHeaderId").ToString TxtRequestPorductHeaderNum.Text =…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,657 questions
asked 2024-07-12T14:19:11.0966667+00:00
Shahab a 261 Reputation points
answered 2024-07-15T01:38:34.5366667+00:00
Jiachen Li-MSFT 28,781 Reputation points Microsoft Vendor
0 answers

Running total columns in DataGridView

Hi, I have a DataGridView with 4 columns & I am trying make the last 2 columns running totals, calculated by checking if the Type column value is A or B, then adding the Quantity column progressively as new rows are added. Please see table below 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,657 questions
asked 2024-07-13T23:42:00.3966667+00:00
SeanPress 186 Reputation points
commented 2024-07-14T17:38:36.74+00:00
Les 0 Reputation points
2 answers

XmlDocument to XmlReader?

Hello I used to load an XML file into an XDocument and keep it intact in memory, then pass it to another object when needed, since it only accepts XmlReader, I was using XDocument.CreateReader. Now am moving from XDocument to XmlDocument, just no idea…

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.
10,604 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,657 questions
asked 2024-07-13T23:12:42.57+00:00
StewartBW 825 Reputation points
answered 2024-07-14T17:18:29.11+00:00
StewartBW 825 Reputation points
1 answer

OSVERSIONINFOEX dwBuildNumber

Hello experts, To detect Windows Server 2016 and onward, I use this code, my question is that am I using the correct build numbers to distinguish? Thanks :) If OSVERSIONINFOEX.dwMajorVersion = 10 Then If OSVERSIONINFOEX.wProductType =…

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,040 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,569 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,657 questions
asked 2024-07-14T03:52:07.5666667+00:00
StewartBW 825 Reputation points
edited an answer 2024-07-14T06:03:52.68+00:00
Castorix31 83,021 Reputation points
1 answer

VerticalScroll.visible doesn't seem to be working on autoscroll

Hello, My Flow layout panel has panels in it that stretch the entire flow panel, the problem is that it has autoscroll on(and I want to keep it on), and when there'ss enough panels to get a vertical scroll bar, the ends of the panels are cut out and it…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,851 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,657 questions
asked 2024-07-12T19:45:59.63+00:00
Connor Frayne 20 Reputation points
answered 2024-07-12T20:29:37.8133333+00:00
Michael Taylor 50,836 Reputation points
1 answer One of the answers was accepted by the question author.

Disabling Highlighting on a ListView

Hello, I'm making a program to display a GUI with multiple icons showing the state of devices connected to a master device, so far It's going great except the Item I used to store them in, ListView, has an issue, When selected the icon and text…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,851 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,657 questions
asked 2024-07-10T19:17:32.4133333+00:00
Connor Frayne 20 Reputation points
accepted 2024-07-12T17:27:38.7533333+00:00
Connor Frayne 20 Reputation points
0 answers

How to sort a table without breaking column relationships when using "DefaultView.ToTable()"

How to preserve relationships between tables after sorting Related to the Designer.vb Part <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class Form1 Inherits System.Windows.Forms.Form 'Form overrides dispose…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,657 questions
asked 2024-07-12T10:34:58.13+00:00
Mansour_Dalir 1,716 Reputation points
edited the question 2024-07-12T16:02:40.8233333+00:00
Mansour_Dalir 1,716 Reputation points
3 answers One of the answers was accepted by the question author.

How to make a DateTimePicker to display a particular year, month, date & time ?

Hi All, I want a DateTimePicker to display a particular year, month, date and time (eg: somebody's Birthday). Is it possible? What I am trying is; using Textboxes for Year, Month, Date, Hour, Minute & Second to enter the "Birthday &…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,657 questions
asked 2024-03-03T12:49:40.0866667+00:00
VKSB 236 Reputation points
edited an answer 2024-07-12T09:55:24.2833333+00:00
Jiachen Li-MSFT 28,781 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Parse XML without namespace

Hello When parsing this kind of xml, I need to get the number of elementCount and the following 2 fields: OPFCategoryCopyBackgroundColor OPFCategoryCopyName Here's my working code: Dim MyXML As XElement = XElement.Load(MemoryStream) Dim count As Integer…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,657 questions
asked 2024-07-11T09:52:15.3266667+00:00
StewartBW 825 Reputation points
commented 2024-07-12T06:16:53.7133333+00:00
StewartBW 825 Reputation points
3 answers

2 simple questions about XmlDocument

Hello Dim doc As New XmlDocument Before .Load, using this property has any effect or is default and disregarded? Before .Load, using this property has any effect or is default and disregarded? doc.PreserveWhitespace = False Move on: doc.Load(…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,657 questions
asked 2024-07-11T13:34:25.9433333+00:00
StewartBW 825 Reputation points
answered 2024-07-12T06:09:09.1966667+00:00
Jiachen Li-MSFT 28,781 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Cummulative column in DataGrid View

Hi, I have a DataGridView with 4 columns & I am trying make the last 2 columns cumulative totals, calculated by checking if the Type column value is Type A or B, then adding the Quantity column progressively as new rows are added. Please see table…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,657 questions
asked 2024-07-09T16:29:44.96+00:00
SeanPress 186 Reputation points
accepted 2024-07-11T22:08:10.03+00:00
SeanPress 186 Reputation points
1 answer One of the answers was accepted by the question author.

Validate Xml file

Hello, I just need to verify if a file is xml, no specific structure, so just loading to an xml parser and if no exception is thrown at load, I'm fine with it, so I use: Dim doc As XDocument doc = XDocument.Load(InputStream, LoadOptions.None) Check for…

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.
10,604 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,657 questions
asked 2024-07-11T02:55:36.5266667+00:00
StewartBW 825 Reputation points
accepted 2024-07-11T09:41:17.68+00:00
StewartBW 825 Reputation points
1 answer One of the answers was accepted by the question author.

XDocument vs XmlDocument

Hello experts, To load and parse PAD xml from string which one is recommended to use, ie faster or more…

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.
10,604 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,657 questions
asked 2024-07-09T21:01:18.96+00:00
StewartBW 825 Reputation points
commented 2024-07-10T13:15:57.63+00:00
Dewayne Basnett 1,361 Reputation points
1 answer One of the answers was accepted by the question author.

Print data from mdb database

Hello experts Using Access Database Engine with OleDbReader in .net fw4 winforms to read mdb files, need to print the user selected table, ReportViewer from toolbar is added, how can I print table data using code ( run-time )? No database to connect at…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,657 questions
asked 2024-06-29T14:42:04.2466667+00:00
StewartBW 825 Reputation points
accepted 2024-07-10T10:06:10.3133333+00:00
StewartBW 825 Reputation points
1 answer

Unable to set my 'Busy Status' in outlook when replying to a meeting invite?

I can't seem to set my 'busy status' (free, busy, out of office etc) during the 'response' screen when replying to meeting invites. Do I need to manually set this for each meeting by selecting from my calendar after responding to the email invite? I am…

Microsoft Exchange Online
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,657 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,696 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,054 questions
asked 2024-06-11T15:43:45.1366667+00:00
Marcus Pottinger 0 Reputation points
edited the question 2024-07-09T07:31:50.24+00:00
Bruce Jing-MSFT 2,595 Reputation points Microsoft Vendor
4 answers

c sharp and vb

Hello . I have some inquiries. So C# and Visual Basic use the same libraries and the .NET framework. Where is the fundamental difference? Why is C Sharp's salary higher if they all have the same features? I need to understand the difference because…

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.
10,604 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,657 questions
asked 2024-02-02T00:17:57.88+00:00
Talal Saud ALSUHAIMY 0 Reputation points
answered 2024-07-08T16:56:23.3166667+00:00
Bek 21 Reputation points
1 answer One of the answers was accepted by the question author.

Using LINQ with a DataTable

Consider this Datatable: With tbl .Columns.Add("Beginning", GetType(Date)) .Columns.Add("Title", GetType(String)) ..... End With This LINQ extracts all items with a "Beginning" date greater than 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,657 questions
asked 2024-07-07T14:06:04.1433333+00:00
RogerSchlueter-7899 1,256 Reputation points
accepted 2024-07-08T14:50:06.97+00:00
RogerSchlueter-7899 1,256 Reputation points
1 answer One of the answers was accepted by the question author.

How to create custom menu with CheckedListBox and 'TextBox for filter items'

hi. I tried with this code, but the size of the menu and the list becomes bigger in Saudi style. And the scroll list does not work. And that the size of the width of the text box is not adjusted Public Class Form2 Dim menu As New ContextMenuStrip() …

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,657 questions
asked 2024-07-06T04:03:43.93+00:00
Mansour_Dalir 1,716 Reputation points
accepted 2024-07-08T11:22:08.29+00:00
Mansour_Dalir 1,716 Reputation points
1 answer One of the answers was accepted by the question author.

How to get the text from the label by the handle with specific coordinates on any part of the desktop screen

I want to extract the text inside the label by giving certain coordinates from the screen, if the type of the coordinates is from the label, then extract the part of the obtained part.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,869 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,508 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,657 questions
asked 2024-06-06T07:48:09.8966667+00:00
Mansour_Dalir 1,716 Reputation points
accepted 2024-07-06T04:04:39.1133333+00:00
Mansour_Dalir 1,716 Reputation points