2,675 questions with VB-related tags

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

Extend a Function without extension method

Hey The title is a bit curious... What I try to achieve is as follows: I have a class with a function something like this: Public Class Test Public Function GetName As String Return "Jane Doe" End Function …

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-29T14:56:07.743+00:00
Harald Bacik 61 Reputation points
commented 2020-12-29T16:28:59.847+00:00
Harald Bacik 61 Reputation points
2 answers One of the answers was accepted by the question author.

Current Application Directory Name without full path VB.net

Hi, I would like to print the current directory name without showing the full path. With current directory I meant the current directory of the VB application from which it's launched. For example; if I launch the application from…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-27T21:36:30.43+00:00
~OSD~ 2,151 Reputation points
commented 2020-12-29T08:43:49.2+00:00
~OSD~ 2,151 Reputation points
2 answers One of the answers was accepted by the question author.

how to change a label caption?

I've been trying to make the caption of a label change from 0-10 when clicking in a button so each time that I click one of the buttons it adds 1 all the way to 10 and another that does the oposite (minus 1 until you reach 0) I've tried this so far but…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,692 questions
asked 2020-12-28T16:52:56.09+00:00
ALMUDENA PÉREZ DE LA VEGA 21 Reputation points
answered 2020-12-29T08:05:51.153+00:00
Emi Zhang-MSFT 24,056 Reputation points Microsoft Vendor
6 answers One of the answers was accepted by the question author.

Class with combobox options

Hallo, I am trying to make a class object which shows a options in a combobox and takes a parameters according to that object selection. Lets say I have an object or class called Box, I want to show some options in a Combobox, for example one 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,675 questions
asked 2020-12-14T18:46:06.91+00:00
Hobbyist_programmer 621 Reputation points
commented 2020-12-28T22:09:40.877+00:00
Karen Payne MVP 35,391 Reputation points
2 answers One of the answers was accepted by the question author.

Showing object property value and its default value in two textboxes with binding?

Hallo, I have a class object at present like below. I have this collection in binding list and with binding source it is bound to textbox controls. I have two text boxes , one to show the default value as read only and another textbox to enter value for…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-23T14:06:05.137+00:00
Hobbyist_programmer 621 Reputation points
accepted 2020-12-28T11:53:42.563+00:00
Hobbyist_programmer 621 Reputation points
1 answer

APIs that always throw exceptions on .NET Core and .NET 5+

Hello, The list of APIs that always throw exceptions on .NET 5+ has three functions under System.CodeDom.Compiler: CodeDomProvider.CompileAssemblyFromDom CodeDomProvider.CompileAssemblyFromFile …

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,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,675 questions
asked 2020-12-27T19:41:47.037+00:00
An0n 1 Reputation point
answered 2020-12-27T22:01:03.973+00:00
Karen Payne MVP 35,391 Reputation points
3 answers One of the answers was accepted by the question author.

How do you call an async function from Main on a console app?

I have a VB Winforms application that uses Await in Form1_Load and works fine. I would now like to switch this to being a console application. How do i call asynchronous subs or functions from Main?

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-25T17:06:56.7+00:00
Boruch Tkatch 141 Reputation points
accepted 2020-12-27T20:51:14.24+00:00
Boruch Tkatch 141 Reputation points
1 answer

How to use picturebox in MVP C#

i have forum with picturebox and some texts so i want to insert photo to database how can i do that . i want to save image to the table by stored procedure in sql using MVP c# so i start with stored procedure : Create procedure…

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,664 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,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,675 questions
asked 2020-12-12T06:56:58.35+00:00
KHALID ALI 1 Reputation point
answered 2020-12-25T10:59:13.663+00:00
Alberto Poblacion 1,556 Reputation points
2 answers One of the answers was accepted by the question author.

Textbox Height and text Alignment for four textboxes

Hi Great People. I have 4 textboxes that need to be bigger height than the rest of the textboxes. How can I manipulate the text to be centre of these 4 textboxes. I cannot seem to change the Properties on the Textboxes I have tried using…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-24T14:37:13.713+00:00
Gary Simpson 471 Reputation points
commented 2020-12-24T17:14:44.173+00:00
Viorel 115.2K Reputation points
4 answers One of the answers was accepted by the question author.

Displaying Emoji on Console Program - VB.Net

Dear Friends, I want to display an Emoji on my console program - Not the one like " :-) " but a real one like ![49629-smiling-face.png][1] [1]: /api/attachments/49629-smiling-face.png?platform=QnA Can you please let me know how to do it? …

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
330 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,675 questions
asked 2020-12-19T17:14:30.45+00:00
VKSB 236 Reputation points
commented 2020-12-24T01:41:22.567+00:00
WayneAKing 4,921 Reputation points
2 answers One of the answers was accepted by the question author.

How to Initialize an object with an instance of the custom object

Hallo, I have a class with Customer and orders and how do i place a dummy order when i initialize customer so that the customer already has 1 order? Public Class Customer Public Sub New() ordersValue = New Orders() End Sub Private WithEvents…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-21T20:51:40.25+00:00
Hobbyist_programmer 621 Reputation points
answered 2020-12-23T07:48:01.973+00:00
Hobbyist_programmer 621 Reputation points
1 answer

[VB.NET] Unity Register All Form

Hi all, I have something like this when try to register all type without specify each class (using AllClasses, WithMappings from Unity.RegistrationByConvention ): Dim injections As IEnumerable(Of InjectionMember) = New List(Of InjectionMember) From { …

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-21T10:03:28.147+00:00
Nguyen Minh 1 Reputation point
answered 2020-12-22T07:46:00.583+00:00
Duane Arnold 3,216 Reputation points
1 answer One of the answers was accepted by the question author.

How to to use Datagridview in virtual mode?

Hallo, I am trying to improve the performance of the datagridview when loading a large xml list or list of objects. I will not have have more than 5000 rows ..but with 200 rows with cell formatting event it really slows and almost unusable. Simply…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-20T08:32:04.18+00:00
Hobbyist_programmer 621 Reputation points
accepted 2020-12-21T20:46:13.467+00:00
Hobbyist_programmer 621 Reputation points
1 answer

write program that will display and tell a number of palindrome words in a sentance

write a program that will display and tell a number of palindrome words in a sentence

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-20T06:06:57.22+00:00
rano 1 Reputation point
answered 2020-12-20T06:48:27.61+00:00
WayneAKing 4,921 Reputation points
2 answers One of the answers was accepted by the question author.

[vb.net] How do I make method().method() form in VisualBasic?

If I create my own API that can be used like method().method() ... like below, please let me know how to code using class and namespace. Excel.Worksheets(sheetName).range("$A$27:$G100").Value Namespace Excel Class Worksheets …

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-13T18:00:56.03+00:00
Soyoung Lee 21 Reputation points
accepted 2020-12-20T03:57:09.197+00:00
Soyoung Lee 21 Reputation points
1 answer One of the answers was accepted by the question author.

How to stop a recursive search

I have an recursive Organization Class as follows: Public Class Organization Public Property OrganizationID As Integer Public Name as string Public Property Subsidiaries As ObservableCollection(Of Organization) .... End Class I want a…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-17T21:41:09.273+00:00
RogerSchlueter-7899 1,281 Reputation points
accepted 2020-12-18T23:37:02.997+00:00
RogerSchlueter-7899 1,281 Reputation points
2 answers One of the answers was accepted by the question author.

Gmail Email Attachment Strnage behavior with VB Application

Hi, I would like to send ALL (files and folders to email attachment with VB). But seems like all files are not attached but only two. Here is the folder containing files to be attached. But I am getting only two files in attachment as: …

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-17T13:30:50.547+00:00
~OSD~ 2,151 Reputation points
accepted 2020-12-18T23:25:27.633+00:00
~OSD~ 2,151 Reputation points
6 answers One of the answers was accepted by the question author.

How To Make An Admin Panel To Controll Every Controller In My App.

Hi all, This question is strange, i think that . But i had to ask it before..... Anyway , My clients asked me to fix some code in my apps. for example (I have to make a date changeable not fixed" In some Forms i made the datetimepicker takes…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-14T10:13:05.207+00:00
Amr_Ali 136 Reputation points
commented 2020-12-18T13:11:00.413+00:00
Amr_Ali 136 Reputation points
2 answers One of the answers was accepted by the question author.

Problem with Microsoft.Office.Interop.Excel

Hello, I have simple code to open a excel. But I couldn't open it.. I googled about this interop problem and tried every ways, but I didn't get anything.. I use 2019 VB.NET and 2019 MS Office. Please, help me to fix it.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,675 questions
asked 2020-12-17T15:15:15.813+00:00
sem 21 Reputation points
commented 2020-12-18T07:40:37.66+00:00
sem 21 Reputation points
5 answers

Can someone please help fix the coding issue for the application "Apartment Rental by City?" (Exception Unhandled - "Input string was not in correct format")

Option Strict On Public Class frmApartment ' Class level private variables Public Shared _intSizeOfArray As Integer = 9 Public Shared _strDisplayCity(_intSizeOfArray) As String Private…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,903 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,675 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
971 questions
asked 2020-12-17T16:12:07.66+00:00
Laura 1 Reputation point
commented 2020-12-18T03:13:43.08+00:00
Laura 1 Reputation point