2,670 questions with VB-related tags

Sort by: Updated
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,656 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 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,386 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,670 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,651 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,656 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 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,670 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 114.8K 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.
329 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 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,670 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,670 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,670 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,670 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,670 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,670 questions
asked 2020-12-17T21:41:09.273+00:00
RogerSchlueter-7899 1,256 Reputation points
accepted 2020-12-18T23:37:02.997+00:00
RogerSchlueter-7899 1,256 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,670 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,670 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,670 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,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
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.
967 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
2 answers One of the answers was accepted by the question author.

Files - Folder attachment with VB.Net

Hi, I am using following sample code to send email to Gmail, working fine so far. However, I would like to add email attachment(s). For example, everything under the C:\Users\%UserName%\Attachments should be emailed, is it possible? 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,670 questions
asked 2020-12-16T13:40:45.54+00:00
~OSD~ 2,151 Reputation points
commented 2020-12-17T15:36:22.48+00:00
Anonymous
2 answers

Data Copy Operation and Process excecution in VB

Hi, I would like to copy a folder (with all it's contents - files /folders /hidden files folders /empty directories etc.) And need to use this newly copied data to start a process, ... but if the copying operation is not finished already, the next…

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 2020-12-16T12:12:29.163+00:00
~OSD~ 2,151 Reputation points
commented 2020-12-17T14:15:45.703+00:00
~OSD~ 2,151 Reputation points
5 answers One of the answers was accepted by the question author.

VB.NET DataGridView to CSV Error: system.outofmemoryexception

I have the below code that works but if DGV is large I get a system.outofmemoryexception how would I change existing code to download in chunks or preferred method of doing this. any help is greatly appreciated. If ComboBoxExport.Text = "Save 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,670 questions
asked 2020-12-14T16:53:31.49+00:00
jim brown 271 Reputation points
accepted 2020-12-16T20:19:33.43+00:00
jim brown 271 Reputation points
1 answer

Multiple Serializarion over Network (tcp)

Hello Dear Sir , I got some problem with parallel serialization (in same time , not async) : Dll Serialized : Public Class Class1 <Serializable()> Public Class PacketMaker Public Property File As Byte() Public Property…

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 2020-12-15T17:56:12.817+00:00
Arsium ***** 331 Reputation points
commented 2020-12-16T12:29:59.303+00:00
Arsium ***** 331 Reputation points
1 answer One of the answers was accepted by the question author.

File Deletion from Unknown Folders

Hi, I have a root directory at N:\DemoLab with following directory structure of known folders (Months,Years,Weeks) and unknown folders (DynamicName, RandomName etc.) DemoFile.txt is available under all these sub-directories (regardless if…

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 2020-12-16T10:59:42.25+00:00
~OSD~ 2,151 Reputation points
commented 2020-12-16T11:15:27.547+00:00
~OSD~ 2,151 Reputation points