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 …
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?
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…
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…
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? …
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.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 { …
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…
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.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 …
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…
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: …
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…
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.
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…
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…
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.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…
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…
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…