2,640 questions with VB-related tags

Sort by: Created
1 answer

Split String

Hello This code does not remove space only fields, how to discard space only fields? Dim MyString As String = ";full; ;title" Dim MyFinal As String() = MyString.Split(New Char() {";"c}, StringSplitOptions.RemoveEmptyEntries) 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-27T13:40:42.97+00:00
StewartBW 745 Reputation points
answered 2024-06-28T02:40:24.2966667+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
2 answers

extract part of string

Hello experts, I'm reading Vcf contact files, the only fields I have issues reading are 2 multi-line fields: NOTE and KEY Because I don't know how many lines it lasts, the fields order can be different in each file so just need an idea how to parse these…

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-27T08:52:07.12+00:00
StewartBW 745 Reputation points
answered 2024-06-28T01:50:45.3966667+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
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
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
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.

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,542 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
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
1 answer

Can we create the attached model like datagridview in C#.net Windows Form Application.

We are planning a desktop application using c#.net. One of our challenges is to create an attached type of DataGridView.Unfortunately, we are not getting any solution for designing customized types of DataGridView.If possible above type of DataGridView…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,866 questions
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.
4,979 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,553 questions
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,542 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-19T05:42:33.01+00:00
muralee raman 0 Reputation points
commented 2024-06-26T13:05:38.8433333+00:00
Jiale Xue - MSFT 41,976 Reputation points Microsoft Vendor
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
1 answer

JRO Dependencies

Hello In vb.net WinForms .net fw 4.0 app, when I add a reference to: Microsoft Jet and Replication Objects 2.6 Library (Interop.JRO.dll) another component is also force added among with together: Microsoft ActiveX Data Objects 2.8 Library…

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-18T04:26:39.89+00:00
StewartBW 745 Reputation points
commented 2024-06-25T08:07:41.18+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
2 answers

Return exit code

Hello, I have 2 VB.net WinForms app (.net 4.0) one is x64 one is x86 From the x64 one, I call the x86 one and need to get back its return code. Code inside the x64 app: Using Compiler As New Process …

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-17T22:47:17.3233333+00:00
StewartBW 745 Reputation points
commented 2024-06-25T08:08:19.27+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
0 answers

VB Defaults - VS2022

My VB defaults in Visual Studio are set to Infer Off, Strict and Explicit On. I create a windows forms app in VS2022. It is .Net 8. The form has a button and a textbox and this code shows no errors and runs. Code: Public Class Form1 Private Sub…

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-17T13:04:53.5166667+00:00
Dewayne Basnett 1,361 Reputation points
edited the question 2024-06-18T01:35:35.6166667+00:00
Tianyu Sun-MSFT 28,846 Reputation points Microsoft Vendor
3 answers

Search with oledb

Hello I use Access Database Engine and OleDbReader to search within my mdb database: New OleDbCommand("SELECT * From Blah WHERE TheID = ?" + strCondition, conn) strCondition can vary based on the user input: strCondition = " 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,640 questions
asked 2024-06-17T05:12:04.8333333+00:00
StewartBW 745 Reputation points
commented 2024-06-19T06:28:10.2966667+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
2 answers

Compact and repair mdb

Hello I use Access Database Engine and OleDbReader to work with mdb files. If my memory serves me, I've been told, compact (and repair if necessary) of mdb files is not provided in Access Database Engine? If so, which component and command to use, when…

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-17T00:32:04.99+00:00
StewartBW 745 Reputation points
commented 2024-06-20T09:03:04.1733333+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
0 answers

how to fix Cannot send a content-body with this verb-type with a Post request

I have a VB.net app that is trying to send a post request to get a token. However, I get the error above. Below is a snipit of the code in question. Dim client = New RestClient(stTokenURL) Dim request = New RestRequest(Method.Post) 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,640 questions
asked 2024-06-16T03:44:47.1566667+00:00
Mark Larsen 0 Reputation points
commented 2024-06-17T09:07:55.32+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
1 answer

Switch from picture in a cell to picture over cell

Hi All, I want a code in VB.net to switch from picture in a cell to picture over a cell. The below is the code I have so far. Next step will be to select the cell B1 and make the picture over cell and save it in the desktop that picture. Thanks for your…

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-14T08:02:23.46+00:00
Anonymous
commented 2024-06-20T09:02:43.36+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
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
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

Can't launch my app because of 'you must install .NET Desktop Runtime' popup

Hi everyone, I'm trying to run my application I've just installed on my computer but I'm having an issue with my .NET Runtime. I've been debugging this application in Visual Studio Community 2022 v17.10.2 and it works fine when I start it through Visual…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,553 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,804 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
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
189 questions
asked 2024-06-12T15:25:22.23+00:00
Connor Frayne 0 Reputation points
commented 2024-06-17T08:40:47.1966667+00:00
Tianyu Sun-MSFT 28,846 Reputation points Microsoft Vendor