2,837 questions with VB-related tags

Sort by: Updated
1 answer

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-05-02T14:40:04.8966667+00:00
jacky Perpète 126 Reputation points
answered 2025-05-02T17:07:55.71+00:00
RLWA32 48,416 Reputation points
1 answer One of the answers was accepted by the question author.

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-05-01T15:02:24.29+00:00
StewartBW 1,460 Reputation points
commented 2025-05-01T23:53:45.66+00:00
StewartBW 1,460 Reputation points
1 answer

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2023-04-22T16:56:32.7933333+00:00
VALLEJOS LOPEZ JONNY EXCEQUIEL 0 Reputation points
commented 2025-05-01T17:36:29.9366667+00:00
Lombardo, Esperanza (Student) 0 Reputation points
0 answers

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-29T14:10:21.2333333+00:00
StewartBW 1,460 Reputation points
commented 2025-04-29T20:22:31.27+00:00
StewartBW 1,460 Reputation points
0 answers

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-29T15:00:11.71+00:00
arlindo antónio 0 Reputation points
1 answer One of the answers was accepted by the question author.

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-27T21:40:51.6433333+00:00
StewartBW 1,460 Reputation points
accepted 2025-04-29T14:06:02.77+00:00
StewartBW 1,460 Reputation points
1 answer One of the answers was accepted by the question author.

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-28T11:29:18.5066667+00:00
StewartBW 1,460 Reputation points
accepted 2025-04-28T15:14:57.12+00:00
StewartBW 1,460 Reputation points
0 answers

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-27T20:24:14.6433333+00:00
StewartBW 1,460 Reputation points
1 answer One of the answers was accepted by the question author.

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-27T18:47:41.3566667+00:00
StewartBW 1,460 Reputation points
commented 2025-04-27T20:19:32.33+00:00
StewartBW 1,460 Reputation points
0 answers

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-27T17:09:20.3166667+00:00
tom-jerry 0 Reputation points
edited a comment 2025-04-27T19:05:12.8866667+00:00
Viorel 121.4K Reputation points
0 answers

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-26T16:05:18.5066667+00:00
StewartBW 1,460 Reputation points
commented 2025-04-27T00:14:08.7233333+00:00
KOZ6.0 6,580 Reputation points
1 answer One of the answers was accepted by the question author.

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-24T00:25:56.84+00:00
StewartBW 1,460 Reputation points
accepted 2025-04-26T07:13:07.5933333+00:00
StewartBW 1,460 Reputation points
2 answers

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-23T16:47:11.57+00:00
Ron Sipherd 276 Reputation points
commented 2025-04-25T17:51:07.42+00:00
Ron Sipherd 276 Reputation points
0 answers

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-24T01:14:52.99+00:00
Marc Menzel 101 Reputation points
commented 2025-04-24T07:01:07.7+00:00
Marc Menzel 101 Reputation points
1 answer

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-21T12:37:52.1366667+00:00
Daniel G Brown 25 Reputation points
commented 2025-04-23T19:05:08.57+00:00
Daniel G Brown 25 Reputation points
0 answers

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-22T22:27:38.8766667+00:00
StewartBW 1,460 Reputation points
edited the question 2025-04-22T23:02:20.3966667+00:00
StewartBW 1,460 Reputation points
1 answer

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-04T13:07:29.95+00:00
StewartBW 1,460 Reputation points
commented 2025-04-22T22:57:51.8166667+00:00
StewartBW 1,460 Reputation points
1 answer One of the answers was accepted by the question author.

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-20T00:07:14.73+00:00
Mugsy's RapSheet 196 Reputation points
commented 2025-04-22T00:57:39.97+00:00
Mugsy's RapSheet 196 Reputation points
1 answer One of the answers was accepted by the question author.

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
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-04-18T09:07:49.86+00:00
jacky Perpète 126 Reputation points
edited a comment 2025-04-21T04:17:19.59+00:00
jacky Perpète 126 Reputation points
3 answers One of the answers was accepted by the question author.

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.

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,176 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
asked 2025-02-01T16:04:12.8266667+00:00
joep kint 20 Reputation points
answered 2025-04-20T18:01:24.2166667+00:00
Kadir Güler 0 Reputation points