2,670 questions with VB-related tags

Sort by: Updated
3 answers One of the answers was accepted by the question author.

Limit the rows in Access table

Hello Is it possible to limit the number of rows in each Access mdb database table? Will need to apply the limitation via VB.NET OLEDB and using Access database engine. Thanks.

Access
Access
A family of Microsoft relational database management systems designed for ease of use.
342 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-06-13T15:00:50.7033333+00:00
StewartBW 925 Reputation points
answered 2024-06-15T14:13:18.4+00:00
Ken Sheridan 2,756 Reputation points
1 answer One of the answers was accepted by the question author.

Copy List Of String to another List Of String

Hello I need to know the difference between the 3 paths to my goal: Dim MyList as New List(Of String) MyList.Add(str1) ... and so on ... Dim NewList As New List(Of String) Now I have 3 ways: 1 NewList.AddRange(ResumeFailed) 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,670 questions
asked 2024-06-13T14:51:58.8366667+00:00
StewartBW 925 Reputation points
accepted 2024-06-15T00:53:39.6666667+00:00
StewartBW 925 Reputation points
1 answer

WebClient via EndPoint

Hello When using WebClient to send and/or receive data, how can I pass an EndPoint instance to the WebClient to connect via the specified IP and…

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-06-08T23:34:52.1333333+00:00
StewartBW 925 Reputation points
edited a comment 2024-06-14T05:14:37.31+00:00
Jack J Jun 24,496 Reputation points Microsoft Vendor
3 answers

Make KeyChar Accept Decimal

Hi I am trying to build a custom calculator to make my data entry more efficient. I am trying to limit a textbox in Visual Basic to only accept one decimal point. So far this code only accepts integers and the Backspace button. Dim Ch As Char = e.KeyChar…

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-10-30T17:42:08.813+00:00
Andy 1 Reputation point
commented 2024-06-13T08:19:54.64+00:00
KOZ6.0 6,300 Reputation points
3 answers

Make Class disposable

Hello, Here's a class I use to log off the user, etc, the usage: Dim IExitWindows As New WinExitClass IExitWindows.PowerOffWindows() How can I make this class disposable? Couldn't figure out how to add disposable so instead of: Dim IExitWindows As New…

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-06-09T16:31:59.73+00:00
StewartBW 925 Reputation points
commented 2024-06-13T06:41:35.5866667+00:00
Jack J Jun 24,496 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

.net framework forward compatibe?

Hello, my app in .net framework 4.6.1 runs on Windows 8.1 with .net 4.5.1, but why? On a new Win8.1 setup, .net framework 4.5.1 is pre-installed, but I have set my app to require minimum .net 4.6.1, so why it should run on lower .net versions? Very…

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 2022-04-25T21:33:44.45+00:00
OSVBNET 1,386 Reputation points
edited an answer 2024-06-12T07:35:39.7066667+00:00
Jiachen Li-MSFT 29,261 Reputation points Microsoft Vendor
1 answer

Get data with post method using webclient

Hello There's a POST sample at the bottom of this page: https://ws.interfax.net/admin.asmx?op=GetAccountPPCardsBalance2 Sample HTTP POST request and response. The placeholders shown need to be replaced with actual values. POST…

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-05-30T13:11:52.0833333+00:00
StewartBW 925 Reputation points
edited a comment 2024-06-11T07:12:04.4833333+00:00
Jiachen Li-MSFT 29,261 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Show form from thread

Hello, How can I call / invoke this code from inside thread? Using F As New blahForm F.Text = "xyz" F.Tag = "abc" F.ShowDialog(Me) End Using I think Invoke(Sub() ...) is single line command? If InvokeRequired then... 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,670 questions
asked 2024-06-09T15:10:06.14+00:00
StewartBW 925 Reputation points
accepted 2024-06-10T02:48:53.0366667+00:00
StewartBW 925 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,874 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-05-04T15:38:26.2533333+00:00
Mansour_Dalir 1,716 Reputation points
edited the question 2024-06-07T05:57:14.88+00:00
Anna Xiu-MSFT 27,891 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How can I open Microsoft Excel in Visual Basic.NET

I am using Visual Studio 2023 for using Visual Basic. I have latest version of Microsoft Office. I want to open Excel using Visual Basic (not VBA). Please tell me how to go about it. It is very important for me.

.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
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,721 questions
asked 2024-06-02T16:30:14.32+00:00
Rajendra Deshpande 20 Reputation points
answered 2024-06-04T11:32:21.2666667+00:00
tejaswini 0 Reputation points
0 answers

Webrequest populate UserAgent and Headers

asp net version 2.0 asp.net forms with vb.net Dim strData As String = String.Empty Dim wr As HttpWebRequest = Nothing Dim wrRes As HttpWebResponse = Nothing wr = DirectCast(WebRequest.Create(URi),…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 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-05-31T01:20:28.4933333+00:00
icm63 0 Reputation points
commented 2024-05-31T06:15:40.6466667+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
3 answers

Query is too complex.

Hello To delete many selected records at once: In a loop I populate question marks: QuestionMarks = QuestionMarks + "?, " Then: "DELETE FROM table WHERE theID = ? AND fld IN (" + QuestionMarks + ")" And: For Each MyRow As…

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
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-05-24T08:22:33.26+00:00
StewartBW 925 Reputation points
commented 2024-05-31T05:48:41.7633333+00:00
Jiachen Li-MSFT 29,261 Reputation points Microsoft Vendor
1 answer

Memory access violation when writing a combobox in Visual Basic

I've had a program since 2004. I've been updating it since then. The GUI is in Visual Basic. Suddenly a statement that simply takes the text from one combobox and puts it in a second (invisible) combobox is giving me a memory access violation during…

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-05-26T21:41:11.0533333+00:00
Bob Zeidman 1 Reputation point
commented 2024-05-30T09:24:36.62+00:00
Jiachen Li-MSFT 29,261 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Rename mdb table

Hello I use Access Database Engine and OleDbReader to work with mdb and accdb files, need to rename a table: ALTER TABLE <table name> RENAME TO <new table name> OleDbException, anyway using ADE? 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-05-29T04:01:30.4533333+00:00
StewartBW 925 Reputation points
commented 2024-05-29T23:55:20.6966667+00:00
StewartBW 925 Reputation points
3 answers

VB support in VisualStudio 2022 for ASP.NET Core Web App

Hi, There is no more Visual Basic support in Visual Studio 2022 for ASP.NET Core Web App? Is Visual Basic EOL program language now and their will be no future support for it? Thx

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 2022-01-29T12:39:40.983+00:00
nickCroat 111 Reputation points
commented 2024-05-29T12:29:05.4333333+00:00
Steve Mol 0 Reputation points
3 answers One of the answers was accepted by the question author.

Simple program using a Background Worker freezes anyway

Program gets every filename from a folder, then creates a text list of unique extensions found and the frequency. In this case there are around 35000 files. I put most of the work into the Background Worker but the UI freezes anyway until it is finished.…

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-05-28T18:23:19.2266667+00:00
Devon Nullman 20 Reputation points
answered 2024-05-29T06:05:50.3266667+00:00
Devon Nullman 20 Reputation points
2 answers One of the answers was accepted by the question author.

FileIO.TextFieldParser

Hello, Dim Blah As New FileIO.TextFieldParser(src) MyTextParser.TextFieldType / .SetDelimiters / .TrimWhiteSpace etc While Not MyTextParser.EndOfData Blah.ReadFields()... End While Before entering the While loop, how can I get how many times this…

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-05-24T09:50:20.7233333+00:00
StewartBW 925 Reputation points
edited an answer 2024-05-29T01:26:43.1966667+00:00
Hui Liu-MSFT 47,421 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,874 questions
.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-05-23T15:21:45.1333333+00:00
Andrew Mercer 481 Reputation points
commented 2024-05-27T21:00:43.62+00:00
KOZ6.0 6,300 Reputation points
1 answer

How to get specific image coordinates from within bitmap

hi Is there a special (Library/Class) for such an achievement? which can find and return the coordinates by giving a symbol of a specific image from within the larger image

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,874 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,524 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-05-21T03:56:04.6666667+00:00
Mansour_Dalir 1,716 Reputation points
commented 2024-05-27T03:36:02.4133333+00:00
Jiachen Li-MSFT 29,261 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Integer equivalent in Access

Hello I work with Access mdb with OleDbRader (Access Database Engine) in vb.net and need to set the data type to Integer (NOT Long Integer) so: Dim cmd As New OleDbCommand("ALTER TABLE Blah ALTER Column colm ???",…

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
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-05-26T01:35:55.2433333+00:00
StewartBW 925 Reputation points
accepted 2024-05-26T21:35:04.4533333+00:00
StewartBW 925 Reputation points