2,670 questions with VB-related tags

Sort by: Updated
1 answer

How to use the function in the expression that adds a column in the data table

Dim MyTable As New DataTable MyTable.Columns.Add("Name") MyTable.Columns.Add("Age", GetType(Integer)) MyTable.Rows.Add("Ali", 9) MyTable.Rows.Add("Amir", 15) MyTable.Rows.Add("Mansour", 18) …

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,670 questions
asked 2024-07-28T06:39:37.5533333+00:00
Mansour_Dalir 1,716 Reputation points
edited the question 2024-07-28T07:36:00.8833333+00:00
Mansour_Dalir 1,716 Reputation points
1 answer

Can't get the name of directories sorted by name

Hello experts, I need to get the name of directories sorted by name, just like what is shown in the Windows explorer. 3 folders are in a path, Windows show them in the below order: 0_35_33 7_07_10 18_16_40 But Directory.GetDirectories and…

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,655 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,670 questions
asked 2024-07-27T23:03:39.8733333+00:00
StewartBW 925 Reputation points
commented 2024-07-28T01:34:26.2033333+00:00
StewartBW 925 Reputation points
3 answers

I created a macro to open an email template, I want to add additional code so that it automatically attaches a specific file, can this be done?

I am fairly new to the macro scene but I was able to create a macro to open an email template, I want to add additional code so that it automatically attaches a specific file, can this be done? I know that you can nest macros and I believe that's what I…

Outlook
Outlook
A family of Microsoft email and calendar products.
3,427 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,670 questions
asked 2024-07-26T14:14:58.6+00:00
Jeannie 0 Reputation points
answered 2024-07-26T15:26:23.4233333+00:00
Michael Taylor 51,426 Reputation points
1 answer One of the answers was accepted by the question author.

Datagridviewcombobox returns string instead of decimal causing a datagriderror event

I have a datagridview with a combobox column where I set the values of the combobox.items to decimal values. When I select a value I get the dateerror event, and when I look at the value for the combobox column, it is a string, not a decimal, which 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,670 questions
asked 2024-07-24T16:41:28.86+00:00
Dan Hinsley 20 Reputation points
accepted 2024-07-26T15:18:48.9066667+00:00
Dan Hinsley 20 Reputation points
6 answers One of the answers was accepted by the question author.

How to find auto-increment indexes in access database

From visual studio 2022 I need to find in an access database the list of indexes that have an automatic increase. I tried with oledbconnection.getshema("indexes") but I did not succeed. Can anyone help me? Thank you Marco Dell'Oca

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,889 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,670 questions
Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
859 questions
asked 2024-07-24T15:39:31.19+00:00
Marco Dell'Oca 181 Reputation points
accepted 2024-07-26T12:52:40.4233333+00:00
Marco Dell'Oca 181 Reputation points
1 answer One of the answers was accepted by the question author.

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,670 questions
asked 2024-07-13T23:42:00.3966667+00:00
SeanPress 206 Reputation points
commented 2024-07-26T12:04:59.57+00:00
SeanPress 206 Reputation points
1 answer

ProgID or CLSID for vb.net apps?

Hello, When registering a file type extension for an app written in vb.net framework…

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,655 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,670 questions
asked 2024-07-19T04:39:42.3033333+00:00
StewartBW 925 Reputation points
commented 2024-07-26T02:57:23.8+00:00
Jiachen Li-MSFT 29,261 Reputation points Microsoft Vendor
1 answer

How to fix "External component has thrown an exception" in Visual Studio 2019

#> Error : External component has thrown an exception #> Application Type : VB.net Console application. #> Visual Studio Version : Microsoft Visual Studio Professional 2019 #> Operation : I am getting the above error while opening the oledb…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,697 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,670 questions
asked 2024-07-25T08:54:49.0433333+00:00
Bhattacharjee, Surajit 0 Reputation points
edited an answer 2024-07-26T02:53:58.3933333+00:00
Jiachen Li-MSFT 29,261 Reputation points Microsoft Vendor
0 answers

Get a Total from rows in a Grid into another Grid - DevExpress Grid Control

How do I get the total number of Credits in Grid2 from each Student ID in Grid1 using VB.Net?   Grid1              Student ID  CourseNumber      Credit      Description 99                         1                      4        Desc99 99                 …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 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,670 questions
asked 2024-07-25T23:18:19.4533333+00:00
Malam Malam 226 Reputation points
commented 2024-07-26T02:12:40.45+00:00
Jiachen Li-MSFT 29,261 Reputation points Microsoft Vendor
2 answers

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,102 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,639 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,670 questions
asked 2024-07-14T03:52:07.5666667+00:00
StewartBW 925 Reputation points
answered 2024-07-23T07:06:33.75+00:00
Jiachen Li-MSFT 29,261 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Regex.Matches return no duplicates?

Hello Dim blah As MatchCollection = Regex.Matches(text, "([a-zA-Z0-9_-.]+)@([a-zA-Z0-9_-.]+).([a-zA-Z]{2,9})", RegexOptions.CultureInvariant Or RegexOptions.IgnoreCase Or RegexOptions.Multiline) How may I force Regex.Matches not to return…

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,655 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,670 questions
asked 2024-07-22T18:50:26.8233333+00:00
StewartBW 925 Reputation points
accepted 2024-07-22T20:55:56.1633333+00:00
StewartBW 925 Reputation points
1 answer One of the answers was accepted by the question author.

MatchCollection to List(Of String)

Hello Instead of: For Each Match As Match In MatchCollection StringList.Add(Match.Value) Next Is there a shorter and faster way to add all element values in MatchCollection to the StringList which is list of string? Thanks.

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,655 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,670 questions
asked 2024-07-22T19:52:17.1833333+00:00
StewartBW 925 Reputation points
accepted 2024-07-22T20:55:33.93+00:00
StewartBW 925 Reputation points
1 answer One of the answers was accepted by the question author.

RegistryKeyPermissionCheck.ReadWriteSubTree vs boolean Writable

Hello, When using Registry OpenSubKey, I can set either RegistryKeyPermissionCheck.ReadWriteSubTree or Writable boolean property = True. Using MyKey As RegistryKey = Registry.LocalMachine.OpenSubKey("App.Blah\DefaultIcon",…

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,655 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,670 questions
asked 2024-07-19T17:11:47.1433333+00:00
StewartBW 925 Reputation points
accepted 2024-07-20T00:23:17.6+00:00
StewartBW 925 Reputation points
1 answer One of the answers was accepted by the question author.

Option Infer Off help

Hello, I am getting some errors when Option Infer Off and need to eliminate them, all becuase of data type declaration, since they belong to COM objects I've no idea set them to which data type? For Hhctrl.ocx: Dim Const HH_DISPLAY_TOPIC = &H0 Dim…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,670 questions
asked 2024-07-16T15:03:40.04+00:00
StewartBW 925 Reputation points
accepted 2024-07-19T04:35:22.98+00:00
StewartBW 925 Reputation points
1 answer One of the answers was accepted by the question author.

Run-time error -2147221164 (80040154) Class not registered

Hi, I applied this tutorial for using .Net in Micrsoft Office, I used Visual Studio 2022 Current and .Net Framework 4.7.2 and Microsoft Access 2016 I didn't see Intellisense when writing code, and when I execute I get the error: Class not…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,670 questions
Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
859 questions
asked 2022-03-13T22:09:26.993+00:00
Yusuf 771 Reputation points
commented 2024-07-18T00:03:56.96+00:00
Jay Jacob Wind 0 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,670 questions
asked 2024-07-11T13:34:25.9433333+00:00
StewartBW 925 Reputation points
commented 2024-07-17T06:27:48.5133333+00:00
Jiachen Li-MSFT 29,261 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to pass a report parameter with multiple values from vb.net

I am currently using Visual Studio 2013 and I am writing a service that will allow someone to choose report settings and pass them into the SSRS 2016 report. I am coding this is VB.net. The issue I am having is one report parameter has been setup…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,670 questions
asked 2021-02-25T18:32:22.9+00:00
Zansheen 26 Reputation points
commented 2024-07-16T19:09:48.2+00:00
Peter 0 Reputation points
0 answers

Error loading/reading file

Hello I've got the WDK installer and asked it to save files to my drive, now when I wanna read those files I'll get exceptions, when trying to load via OpenFileDialog: Never seen such scenario, how to gain permission via VB.net when reading such…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,670 questions
asked 2024-07-16T00:34:32.26+00:00
StewartBW 925 Reputation points
commented 2024-07-16T01:12:18.58+00:00
StewartBW 925 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,889 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,670 questions
asked 2024-07-12T19:45:59.63+00:00
Connor Frayne 20 Reputation points
commented 2024-07-15T14:24:22.2666667+00:00
Connor Frayne 20 Reputation points
3 answers One of the answers was accepted by the question author.

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,655 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,670 questions
asked 2024-07-13T23:12:42.57+00:00
StewartBW 925 Reputation points
commented 2024-07-15T12:37:10.69+00:00
StewartBW 925 Reputation points