Why is a Completed Task Halting Processing
Working with a map application, I am trying to allow the user to click on a series of points on a map to create a line segment. With the help here, I have the following code: PrivateCreatingPoint As TaskCompletionSource(Of Point) Private Sub…
MouseWheeL not Working
I want to Add mouse wheel scroll in My Visual Basic Form , how to enable the Mouse wheel, i tried but unable to access it, i have big size form so i used vertical scroll bar for scrolling form, but unable to access that scroll bar by Mousewheel, while…
Implement Dark Mode In VS2022 VB Project
Hello Is there any way to implement Dark Mode in a VB 2022 project? I have cataracts and the glare from a white form is blinding. I have implemented Dark Mode in Windows and in every app that supports it. I need it at the project level. Any help…
My.Computer not working in VS2022 desktop app
Hello, I am having issues with using My.computer in my app. It generates an error that indicates that it's not defined. I know that it has something to do with the version of the .Net SDK being used in my app. Older apps that use older versions of the…
How to read all lines of a file using async and await in VB.NET
How can I convert the Following Code into code that uses async and await? `Public Function GetFileText()` Return File.ReadAllLines(FileItemListPath) End Function Dim ListLines() As String = GetFileText()

XInputGetAudioDeviceIds
Hi all, I've converted this code to VB.net and it works fine: https://www.codeproject.com/Articles/492473/Using-XInput-to-access-an-Xbox-360-Controller-in-M But XInputGetAudioDeviceIds is missing from…
WinApp Cert Kit Failure
Hey all, <> contains a reference to a Launch Process related API System Diagnostics Process Start I just use it for opening web pages: Process Start ("url link") In .Net Framework 4.8 WinForms app, is there a replacement for opening web…
where can I download vb powerpacks v9.0
where can I download vb powerpacks v9.0? powerpacks v12 dose not works under visualstudio 2022. it has been working under vs2019. someone says vb powerpacks v9.0 works fine with vs 2022.

Sudden VB6 run-time error 48 on Windows 11
I have a VB6 program that I wrote years ago and update often. I use it frequently twice a year to run fundraisers for several local non-profits. The last fundraising effort ended several weeks ago (thankfully), and I have used the program daily since to…
manifest vs Visual Studio version?
Hi, Need to add dpiAware/dpiAwareness/longPathAware to the WinForms vb.net manifest, .net fw 4.8 in VS 2013 pro. asmv3: seems unsupported, so is this correct: <application> <windowsSettings> <dpiAware…
How to outsmart the long file name problem on FTP.
Hi there, Have a problem in transfering the files with the long path names to the FTPS/SFTP server. I know, this is the old problem of the Windows file names length limitation, raised the tons of info on the internet, but the problem still not…


X509Certificate2Collection.Import p7m Bug?
Hi X509Certificate2Collection.Import ("D:\smime.p7m", Nothing, X509KeyStorageFlags.UserKeySet Or X509KeyStorageFlags.Exportable) Always throw CryptographicException, but CryptographicException.Message is: The operation completed…
Exception messages in en-US only
Hello I've placed an exception sender in my VB.net app which in case of exceptions, will send them to me to check, seems on localized systems, the messages are not in en-US and I get them like this: Exception Message: Erro genérico em GDI+. Root…
Convert uris to links in html page
Hi, I have a very simple/basic html which has some uris inside, like this: <p>some text http://www.msn.com the rest</p> Need to convert the uris to links like this: http://www.msn.com/abc to: <a…
How to Assign a Variable to a Tuple
Working with map data, this line of code gets elevation (and other) data: Dim PointData As ValueTuple = Await GetElevation(NewPoint) using this function: Private Async Function GetElevation(pt As Point) As Task(Of (Elevation As Double, Lat As Double,…
add row to datagridview
i have a vb.net app with a datagridview that is filled by a view with an underlying table. now i want to insert rows in the datagridview like in excel (under the selected row). i have the following code. Code: Private Sub BtnNewP_Click(sender As…
Calling Win32_CDROMDrive freezes the code if the optical drive is burning a disc
Hi Using MySearcher As New ManagementObjectSearcher(New SelectQuery("Win32_CDROMDrive")) For Each MyDisk As ManagementObject In MySearcher.Get() ' Just here the code execution hangs if the only optical drive is writing a Blu-ray…
Check if string contains non-ASCII
Hello To check if inside a string, there are any non-ASCII characters, is this code snippet ok? Encoding.UTF8.GetByteCount(inString) <> inString.Length = True/False False: full ANSI string True: string contains Non-ANSI characters Not sure what…
How can I remove an item from the items obtained from the main File Explorer menu (IContextMenu) and add a new item along with an icon?
Based on the answer already given (previous question), I wanted to customize the resulting items so that some of them are not visible and add a few of my own items so that I can do something from the click event on the custom item. If possible, please…
