How can I tell in C# or VB.NET if a low-level hook is blocked by a high-integrity process?
Hello, In a VB.NET application, I'm using a low-level hook to manage mouse movements on the screen. Windows' built-in security measures prevent the low-level mouse hook from interacting with, for example, the Task Manager. My program no longer receives…
VB

Pass correct value in VB.net
Hi experts, When using ExitWindowsEx in VB.net, for DWORD dwReason I wanna set this value: SHTDN_REASON_MAJOR_OTHER | SHTDN_REASON_MINOR_OTHER | SHTDN_REASON_FLAG_PLANNED "Other (Planned)" A planned shutdown or restart. So, what to set…
VB
tengo una matriz con preguntas y respuesta como mostrarla en un for y textbox la opciones
Buenos días compañeros, estoy haciendo un proyecto en VB.NET creando o simulando el famoso juego Preguntados. Pero tengo un problema. tengo una tabla llamada preguntas con sus respectivas opciones o respuesta, en visual llamo a esa tabla y meto la…
VB
ComboBox in highdpimode
Hi I shifted to .Net Framework4.8 WinForms to use dpiAware and dpiAwareness and seems that ComboBox can't set its height correctly, anyone knows a workaround please? Thanks in advance :) The height of ComboBox is so small in dpi250% for example,…
VB
como fazer uma consulta somente com o dia e o mês ?
olá eu pretendo fazer uma conulta para me lembrar dos aniversariantes do dia mais a consulta deve se feita com base no dia e o mes ignorando o ano, para ele varrer toda a tabela e pagar somente os aniversariantes independente do ano de nascimento o…
VB
Custom ProgressBar
Hi, I need to make a custom ProgressBar which allows me to set the Vista 3 state colors in addition to orientation, in .NetFx 4.8 WinForms, wrote this code but orientation will not apply, confused, any tip please? :) Public Class _MeterBar Inherits…
VB
Warning CA1815
Hello experts, I get a warning I don't understand: CA1815: Override equals and operator equals on value types should override the equality (==) and inequality (!=) operators. The whole class code is: <StructLayout(LayoutKind.Sequential)> Public…
VB
Inherit WebClient
Hello experts, Here's a custom WebClient class allowing to set a custom timeout, I think it's not honoring the timeout correctly, but can't find where's the problem with the class, anyone can help please? :) Am I doing the initialize and dispose…
VB
Cast Controls
Hello all, Inside a module / sub, I set some properties of controls on various forms, based on the theme: For Each MyControl As Control In InputForm.Controls If TypeOf MyControl Is Label Then Dim MyLabel = DirectCast(MyControl, Label) …
VB
How to handle scenarios where multiple users are processing the same file at the same time
I have a button on MS access form which when clicked, goes to a network drive and reads a json file and process it. This form will be used by multiple users at the same time. I need to handle scenarios where if multiple user clicks on the button…
VB
Combobox bug?
Hi experts, Create a new WinForms .NetFx4.8 project and place a Combobox + 2 buttons ComboBox1 is set to DropDownList Inside 2 buttons, set FlatStyle to Standard and Flat, and set different back+fore colors for each button. Once you set it to Standard…
VB
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…
VB
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…
VB


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…
VB
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() …
VB
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…
VB
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…
VB
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…
VB


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…
VB
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.