2,640 questions with VB-related tags

Sort by: Updated
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

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
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
3 answers

visual studio 2022 visual basic navigation bar dropdown not working after updating to 17.10.1

VS issue1.png When I look at the code for a form, the middle drop down in the navigation bar is missing all the controls. The code for the controls in moved to the far right drop down (like it would if it is missing a handles clause). If I click on one…

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
asked 2024-06-07T15:23:20.54+00:00
KimW 0 Reputation points
commented 2024-06-25T09:05:42.8766667+00:00
Anna Xiu-MSFT 27,471 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
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
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,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
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
2 answers

Publish to local folder succeeded to no files showing in the published folder in visual studio 2017

I'm trying to publish vb.net project to the local folder in vs2017, its showing publish succeded but when I go to the published directory its not showing any of files

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-06-02T06:20:28.153+00:00
JAYASRI XNH001744 6 Reputation points
edited a comment 2024-06-20T10:32:13.8133333+00:00
İsa Sayın 0 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

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
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.

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
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
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
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