2,591 questions with VB-related tags

Sort by: Updated
0 answers

Visual Studio 2022 - VB.Net Desktop application error message hindering functionality

My desktop application developed with Visual Studio 2022 - VB.Net codes, generated an error message that is hindering the functionality of the application. Please see the message below: Severity Code Description Project File Line Suppression…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-05-16T21:25:31.1233333+00:00
Simon 286 Reputation points
edited the question 2024-05-17T01:35:46.9166667+00:00
Anna Xiu-MSFT 26,391 Reputation points Microsoft Vendor
1 answer

ToUpper and ToLower first char and first word

Hello, Going to convert the first letter of each word to upper and lower case, to upper is simple, but to lower? System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(---) And to convert the first word of string to upper and lower case, no…

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,341 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,591 questions
asked 2024-05-16T13:29:08.5166667+00:00
StewartBW 385 Reputation points
answered 2024-05-17T01:22:47.89+00:00
Jiachen Li-MSFT 26,916 Reputation points Microsoft Vendor
1 answer

Hold IP and Port

Hello Is there any property/class in vb.net that can be used to hold an IP address and Port number? In vb.net , .net framework 4.0, thanks.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-05-16T14:51:19.78+00:00
StewartBW 385 Reputation points
answered 2024-05-16T15:27:04.19+00:00
Dewayne Basnett 1,196 Reputation points
1 answer

Create accdb or mdb from code

Hello I can create a new xls or xlsx Excel file with this: "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\x.xls;Extended Properties=""Excel 8.0""" Using ExcelConnection As New OleDbConnection(AboveString) But how to…

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,341 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,591 questions
asked 2024-05-16T12:30:38.7166667+00:00
StewartBW 385 Reputation points
commented 2024-05-16T13:31:56.0866667+00:00
StewartBW 385 Reputation points
2 answers One of the answers was accepted by the question author.

Get enum string from integer

Hello I have this enum: Friend Enum Blah As Integer Zero = 0 One = 1 Two = 2 End Enum I will get an integer and need to return the related string. ie will need to convert 1 to One. Select Case InputInteger Case 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,591 questions
asked 2024-05-16T01:15:44.92+00:00
StewartBW 385 Reputation points
answered 2024-05-16T13:30:27.7+00:00
Dewayne Basnett 1,196 Reputation points
1 answer

Can't locate and add the System.Management.Automation into my project

Dear All, I trying to search and add the System.Management.Automation and System.Management.Automation.RunSpace that available in VS 2019 and using NuGet as well. Unfortunately, no luck. How to add this reference to my VB.Net 2019 (.NET Framework 4.7.2)…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-05-15T21:39:24.4633333+00:00
Eekhay 81 Reputation points
answered 2024-05-16T01:28:30.82+00:00
Jiachen Li-MSFT 26,916 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

String to Enum?

Hello, How to assign a string to an enum in vb.net? DirectCast([Enum].Parse(GetType(Blah), "Second"), Integer) Option Strict On disallows implicit conversions from 'Integer' to blah. Public Enum Blah First Second Thirds End Enum

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-05-15T16:39:50.26+00:00
StewartBW 385 Reputation points
accepted 2024-05-15T22:15:16.32+00:00
StewartBW 385 Reputation points
2 answers

Why is Copy / Cut / Paste NOT working in RichTextBox? It works my previous projects.

Hi All, I am unable to "Copy" the text output in a RichTextBox in a project created in Visual Studio 2013. In my previous projects, I can "Copy" text from RichTextBox. I found out on Googling that for RichTextBox, it is necessary 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,591 questions
asked 2024-05-06T17:36:06.9066667+00:00
VKSB 196 Reputation points
commented 2024-05-15T07:08:29.02+00:00
Jiachen Li-MSFT 26,916 Reputation points Microsoft Vendor
1 answer

Add a row to a TableLayoutPanel at runtime with a textbox in each cell of the row

I've tried and tried to add a row to a TableLayoutPanel but I can't. Can anyone tell me a tutorial to do this? Thank you Fabrizio

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-05-03T09:34:51.5066667+00:00
Fabrizio Leoncini 0 Reputation points
commented 2024-05-15T07:07:35.9966667+00:00
Jiachen Li-MSFT 26,916 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

Simple Math Opertation

Hello I need to calculate how many parts an SMS text is, the text is US Ascii so here's the long code with minimum of 15 lines: .Length > 0 AndAlso .Length <= 160 Then Return 1 .Length > 160 AndAlso .Length <= 320 Then Return 2 .Length >…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-05-13T13:12:52.5666667+00:00
StewartBW 385 Reputation points
accepted 2024-05-14T22:42:39.8266667+00:00
StewartBW 385 Reputation points
2 answers One of the answers was accepted by the question author.

Why drawing 2 Rectangles on a PictureBox by calling twice a "Function for Drawing" shows only the 2nd Rectangle?

Hi All, Given below is my Function (a Sub) for drawing a "Rectangle" on a "PictureBox". I wanted to draw 2 Rectangles side by side. When I called the function for each Rectangle, only the 2nd Rectangle was drawn, the 1st Rectangle was…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-05-14T11:01:48.48+00:00
VKSB 196 Reputation points
commented 2024-05-14T13:32:19.5533333+00:00
VKSB 196 Reputation points
0 answers

How to disable "the attachment is open. don't forget to save the file if you made any changes" error in outlook auto save macro. Every time any new attachment received i got this error

I have a remote system which was working fine for last 3 years but suddenly i am started to received attached error when any new item received in Outlook. My outlook have macro which save all the attachement in specified folders but this error have…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,336 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
3,073 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,591 questions
asked 2024-04-16T20:04:48.66+00:00
Bushra Raees 5 Reputation points
commented 2024-05-13T16:12:41.86+00:00
AP 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to extract part of the text from the line with a special format

hi Bolded areas need to be extracted. I don't know how to use Regex library. my Format [One of the tags] is Sample '10LBA04CT004-XQ01' Start text with 150,000 lines and have different tags. thank { N 3-SH 3-sh 3-sh 3-SH N 10LBB09 EQUIPMENT =…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,845 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,666 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,591 questions
asked 2024-05-13T02:00:27.6033333+00:00
Mansour_Dalir 1,611 Reputation points
commented 2024-05-13T07:48:47.7066667+00:00
Mansour_Dalir 1,611 Reputation points
2 answers One of the answers was accepted by the question author.

Select Delete commands

Hello, I've been given this samples for insert into and update: Using command As New OleDbCommand("INSERT INTO Table (Column1) VALUES (?)", connection) command.Parameters.AddWithValue("@param1", field1) …

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,341 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,591 questions
asked 2024-05-02T14:23:13.35+00:00
StewartBW 385 Reputation points
commented 2024-05-12T01:05:03.17+00:00
Karen Payne MVP 35,196 Reputation points
1 answer

Can I put a cell into the subject line of an auto email from excel?

My job has an excel sheet for employee attendance tracking that send out an email when an edit has been made. However, currently the email subject just shows the name of the sheet (ex. 05-10-24 attendance infraction) and then the email prompts you to…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,512 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,591 questions
asked 2024-05-11T16:19:12.0766667+00:00
Morris, Kasandra 0 Reputation points
answered 2024-05-11T18:11:50.44+00:00
Fahad Q. Basrawi 80 Reputation points
3 answers One of the answers was accepted by the question author.

Define Thread

Hello, In this code: Dim ThreadBlah As New Thread(AddressOf BlahThread) vs Dim ThreadBlah As New Thread(New ParameterizedThreadStart(AddressOf BlahThread)) ThreadBlah.Start Private Sub BlahThread(ByVal InParam As Object) ... End Sub I can define…

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,341 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,591 questions
asked 2024-05-10T15:08:53.2166667+00:00
StewartBW 385 Reputation points
commented 2024-05-10T21:29:00.1533333+00:00
StewartBW 385 Reputation points
1 answer

How to get the index of duplicate elements along with the range of empty elements after it. LINQ

hi Dim ComplexArray As String() = Split("A C A B C A B A B C") Dim Arr3D = {({"A", ({"0-2", "5-9", "16-16", "19-20"})}), ({"B", ({"10-12",…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,845 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,666 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,591 questions
asked 2024-05-04T15:38:26.2533333+00:00
Mansour_Dalir 1,611 Reputation points
commented 2024-05-10T06:32:29.4533333+00:00
Jiachen Li-MSFT 26,916 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to get the range index of repeated elements. LINQ

Thank Dim MyArray as String()={"A","A","A","B","B","C","A","A"} 'Need Result as Array 0-2 3-4 5-5 6-7

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-04-21T16:51:14.6766667+00:00
Mansour_Dalir 1,611 Reputation points
commented 2024-05-07T05:08:25.8033333+00:00
Mansour_Dalir 1,611 Reputation points
2 answers

How do I stop an MDI parent form from being resized when moved ?

I have an MDI form (VB.net) which contains about 10 child forms which are permanent and fixed in place and which take up nearly all the whole parent form except for a small margin around the edges and between child forms of about 2px. When I move the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,845 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,666 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,591 questions
asked 2021-08-16T04:11:43.833+00:00
GR15 1 Reputation point
edited an answer 2024-05-05T02:02:03.24+00:00
BgnerNprg207 226 Reputation points
1 answer

How do I add a CAPTCHA to a web site written with ASP.NET/VB

A bot seems to be using my web site to send out emails via AmazonSES. I want to add a CAPTCHA to it to prevent this. I came across https://stackoverflow.com/questions/71515717/how-to-add-captcha-in-asp-net-project which appears to be what I want, but…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,297 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,591 questions
asked 2024-04-27T05:08:50.44+00:00
Robert Barnes 71 Reputation points
commented 2024-05-03T04:29:43.4033333+00:00
Robert Barnes 71 Reputation points