Index Files and then Search Index Efficient
I am attempting to build a file command index for searching. I have the following code; however it consumes system resources and freezes the program at times. `Private Sub ListBackgroundWorker_DoWork(sender As Object, e As DoWorkEventArgs) Handles…
WinForms TabControl set ShowFocusCues to false?
Hello, I have difficulties hiding the focus cues around the tab page items of TabControl. Here seems possible: https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.tabcontrol?view=netframework-4.8 But my code won't work, anyone can help…
CustomDocumentProperties inaccessible through Mac VBA for Excel
The following VBA code does not work on Mac Excel since the latest Microsoft update. It continues to work on the windows version of Excel. I have libraries of code that rely on document properties that have been running for a couple of years. Sub test() …
Preventing Image.FromFile exception in VB 2022 when the file does not have a valid image format
The Visual Basic 2022 Image.FromFile method throws an OutOfMemoryException if the file does not have a valid image format. Is there a way to determine in advance whether the candidate file has a "valid image format"? At present I'm using a…


WinForms UWP app 2 issues
Hi all My WinForms .NetFw 4.8 app is installed with msi, I've created an msix installer and it installs to Windows Apps just fine, with a few issues: When I request to read/write: AppData Local It's redirected to: AppData Local Packages id LocalCache…
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…
Read icon from a ListView?
I have a ListView that displays a checkbox, icon, and name of every png in a user-selected folder. On the form is an Imagebox named "picPreview". I want to display an enlarged preview of the icon on the form when I hover over each item in the…


Blocking Mouse Hook for a vb.net application when the task manager has focus.
Hello, For a VB.NET application with WPF, I'm using a transparent window that follows the movement of the mouse cursor on the screen. This application uses the mouse hook to handle the move event. This window represents a custom cursor. This test…
Userform create with vba excel
In my excel VBA project overview, the userform option is missing in the insert menu option. Only module and class module are shown.
WebClient to HttpClient
Hi On Microsoft docs, it's mentioned that WebClient should not be used anymore, and HttpClient is recommended to use, but it does not have DownloadStringAsync and DownloadFileAsync methods, are they somewhere else I can't find? Thanks.
Range.Find() triggers on wrong date, what options do we have?
Within a tool I'm opening the weekly hours and declarations and search for booked hours/holidays etc. For some reason the ....range.find() method finds that 22-2-2025 (Februari) from the weekly report is equal to 22-12-2025 (December) from the dates in…

Why isn't Visual Basic developed like C#?
In fact, I feel very upset with Microsoft's strategy towards the Visual Basic language. You are practicing euthanasia for this language and losing a large base of programmers who prefer to deal with this language. You have wasted the expertise of these…
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…
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…