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 …
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…
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…
![](https://techprofile.blob.core.windows.net/images/xgCloIrQvUeqYfAqQE8a0A.png?8D8342)
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…
![](https://techprofile.blob.core.windows.net/images/7ca689de67ca4855a0ed985ff5add70e.png)
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…
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 …
![](https://techprofile.blob.core.windows.net/images/7ca689de67ca4855a0ed985ff5add70e.png)
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?
![](https://techprofile.blob.core.windows.net/images/NDAfsyBLAQAAAAAAAAAAAA.png?8D8A77)
![](https://techprofile.blob.core.windows.net/images/NDAfsyBLAQAAAAAAAAAAAA.png?8D8A77)
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…
![](https://techprofile.blob.core.windows.net/images/JiX-lf2_BgAAAAAAAAAAAA.png?8D8532)
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? …
![](https://techprofile.blob.core.windows.net/images/LkhGAkKbwkeHLUvfCG8zrw.png?8D896F)
![](https://techprofile.blob.core.windows.net/images/StgvhX9HK0yWdl2-8Uimwg.png?8D8418)
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 { …
![](https://techprofile.blob.core.windows.net/images/-cMQHARdAE--M0ay3o3E7g.png?8D90C1)
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
![](https://techprofile.blob.core.windows.net/images/StgvhX9HK0yWdl2-8Uimwg.png?8D8418)
[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…