1,211 questions with VB-related tags

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

QR image generator

Hello experts, I need to generate the QR code image from a simple text (contact) file and found many commercial components but am not allowed to use any third party dlls, few free source codes including vCardEditor on github, but all are C# 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,640 questions
asked 2024-06-25T22:53:36.7033333+00:00
StewartBW 745 Reputation points
accepted 2024-06-27T08:26:16.9566667+00:00
StewartBW 745 Reputation points
3 answers One of the answers was accepted by the question author.

How to connect Access Database to a VB.Net project in VS 2022 using .Net 8.0?

Hi All, I am trying to use .Net 8.0 in Visual Studio 2022; I am unable to use Access Database; the usual way of adding "Data Sources" is not available ( I have been using .Net Framework 4.5 for my projects without any difficulties.) I used the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,553 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,640 questions
asked 2024-06-20T18:51:16.6666667+00:00
VKSB 236 Reputation points
commented 2024-06-25T20:30:04.3266667+00:00
abdiMahamad-9363 0 Reputation points
1 answer One of the answers was accepted by the question author.

Public key to string

Hello experts I need to insert a certificate public key to a vcf contact file as Base64 string. According to RFC 2426 section 3.7.2 It's like: KEY;X509;ENCODING=BASE64: A1UEBhMCSVQxEDAOBgNVBAgCB0JlcmdhbW8xGTAXBgNVBAcMEFBvbnRlIFNhbiBQaWV0cm8x …

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,640 questions
asked 2024-06-23T02:45:50.3466667+00:00
StewartBW 745 Reputation points
accepted 2024-06-24T07:31:55.7733333+00:00
StewartBW 745 Reputation points
4 answers One of the answers was accepted by the question author.

.Net problem/Question

I haven't programmed in .Net, last used VB 6 several years ago. I'm trying to make a Windows Form application in VB.Net, and it won't let me use the "Add New Data Source" option to connect my database to the project. When I click "Add 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,640 questions
asked 2021-03-29T20:12:43.77+00:00
Randall Donaldson 21 Reputation points
commented 2024-06-21T23:26:59.1633333+00:00
VKSB 236 Reputation points
1 answer One of the answers was accepted by the question author.

GetRowCount question

Hello I just found something here: https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/selection-modes-in-the-windows-forms-datagridview-control?view=netframeworkdesktop-4.8&source=recommendations You can retrieve a collection of the…

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,541 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,640 questions
asked 2024-06-20T12:20:47.3666667+00:00
StewartBW 745 Reputation points
accepted 2024-06-21T12:39:03.4066667+00:00
StewartBW 745 Reputation points
2 answers One of the answers was accepted by the question author.

How to change Font colour of a few Strings only?

Hi all, I am working on a program that gives "Planetary positions" for a period of time ( eg: few weeks, few months). As all the planets except Sun & Moon have "Retrograde motion" (Apparent backward movement), I want to show 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,640 questions
asked 2024-06-08T13:42:33.5833333+00:00
VKSB 236 Reputation points
commented 2024-06-20T18:38:10.49+00:00
VKSB 236 Reputation points
3 answers One of the answers was accepted by the question author.

search in DataGridView

Hello experts I need to select some DataGridView rows based on the user text input, some sort of search, so: For loop As Integer = 0 To DataGridView.Rows.Count - 1 If DataGridView.Item(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,640 questions
asked 2024-06-20T05:13:49.44+00:00
StewartBW 745 Reputation points
answered 2024-06-20T09:24:27.1366667+00:00
KOZ6.0 6,300 Reputation points
2 answers One of the answers was accepted by the question author.

Catch UnhandledException when Application Framework is off

Hello, When I disable Application Framework: AddHandler My.Application.UnhandledException, AddressOf MyUnhandledException Becomes invalid: UnhandledException is not an event of blah.My.MyApplication Using VB.net WinForms .NET FW 4.0 app, anyone can give…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,640 questions
asked 2024-06-18T05:17:20.2766667+00:00
StewartBW 745 Reputation points
accepted 2024-06-20T00:34:07.5366667+00:00
StewartBW 745 Reputation points
2 answers One of the answers was accepted by the question author.

How to run power toy in hidden window?

Dim p = New Process() p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden p.StartInfo.CreateNoWindow = True p.Start("C:\Program Files\PowerToys\WinUI3Apps\PowerToys.Settings.exe") After running this code, the setup window still appears. Is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,553 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,640 questions
asked 2024-06-13T20:26:36.28+00:00
Yen Dang 20 Reputation points
accepted 2024-06-17T11:27:18.9533333+00:00
Yen Dang 20 Reputation points
1 answer One of the answers was accepted by the question author.

Select from table

Hello Using Access mdb with OleDbRader (Access Database Engine) to select all: "SELECT * FROM tabke WHERE clmn = 'blah'" This might return 100 items, how can I use select to read from number 5 to 50, for example? Possible? Thank you all

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,541 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,640 questions
asked 2024-05-24T00:46:41.91+00:00
StewartBW 745 Reputation points
commented 2024-06-16T11:20:45.6333333+00:00
StewartBW 745 Reputation points
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.
325 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,640 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.
846 questions
asked 2024-06-13T15:00:50.7033333+00:00
StewartBW 745 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,640 questions
asked 2024-06-13T14:51:58.8366667+00:00
StewartBW 745 Reputation points
accepted 2024-06-15T00:53:39.6666667+00:00
StewartBW 745 Reputation points
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,640 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 28,001 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,640 questions
asked 2024-06-09T15:10:06.14+00:00
StewartBW 745 Reputation points
accepted 2024-06-10T02:48:53.0366667+00:00
StewartBW 745 Reputation points
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,553 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,640 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,671 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
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,541 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,640 questions
asked 2024-05-29T04:01:30.4533333+00:00
StewartBW 745 Reputation points
commented 2024-05-29T23:55:20.6966667+00:00
StewartBW 745 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,640 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,640 questions
asked 2024-05-24T09:50:20.7233333+00:00
StewartBW 745 Reputation points
edited an answer 2024-05-29T01:26:43.1966667+00:00
Hui Liu-MSFT 47,176 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,866 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,553 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,640 questions
asked 2024-05-23T15:21:45.1333333+00:00
Andrew Mercer 461 Reputation points
commented 2024-05-27T21:00:43.62+00:00
KOZ6.0 6,300 Reputation points
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,541 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,640 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.
846 questions
asked 2024-05-26T01:35:55.2433333+00:00
StewartBW 745 Reputation points
accepted 2024-05-26T21:35:04.4533333+00:00
StewartBW 745 Reputation points