2,845 questions with VB-related tags

Sort by: Updated
0 answers

How to decrypt and archive S/MIME encrypted emails in Outlook Classic using VB.NET?

I am using Outlook Classic (desktop version, 2016+) on Windows 10/11, and I want to decrypt and archive emails encrypted with S/MIME using VB.NET. The goal is: Detect S/MIME-encrypted emails in Outlook. Decrypt the email. Save them as .msg files to 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,845 questions
asked 2025-05-16T11:03:22.1566667+00:00
Ankit Kumar 0 Reputation points
1 answer

How to fix "Unsupported statement value: Microsoft.DotNet.DesignTools.Client.CodeDom.CodeBodyTextStatement."

I tried cleaning and rebuilding the project/solution, but the error persists. The problem arises when I load the form designer for the Windows Form App's main form, but does not affect the loading of the dialog form - a separate form. Also, when I ran an…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,845 questions
asked 2025-05-15T17:13:40.4133333+00:00
GaryBarton-1071 0 Reputation points
answered 2025-05-15T17:13:40.51+00:00
Q&A Assist
2 answers

Query expression error

Access 365 VBA. I keep getting an error { VB module contains a syntax error} on the expression: (InStr(1,[CBA_Address],Chr(13) & Chr(10),1) in my query, where [CBA_Address] is a mult-line long text field. This used to work in older Access versions.…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,845 questions
asked 2025-05-13T21:49:11.7566667+00:00
Maxine Nietz 1 Reputation point
commented 2025-05-14T19:28:13.7+00:00
Viorel 121.6K Reputation points
1 answer

Get data from web table

Ho to get web table value from:https://www.xamig.com/superenalotto/sistema-consigliato-prossima-estrazione.phpthe table Is to the bottom of Page. Tks

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,845 questions
asked 2025-05-13T14:20:38.46+00:00
gss.italy sal21 81 Reputation points
answered 2025-05-13T15:06:19.4733333+00:00
Michael Taylor 59,341 Reputation points
1 answer One of the answers was accepted by the question author.

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,845 questions
asked 2025-05-02T14:40:04.8966667+00:00
jacky Perpète 146 Reputation points
edited a comment 2025-05-12T08:14:32.2666667+00:00
RLWA32 48,896 Reputation points
2 answers

How do I install Visual Basic 6.0?

I want to install Visual Basic 6.0. And I have no idea how I tried a Microsoft link but it said ''You need to install X first'' I tried other sites but I couldn't get any further after I got an installation folder of some kind. I would appreciate some…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,845 questions
asked 2025-05-05T17:52:27.77+00:00
Nemala 0 Reputation points
answered 2025-05-09T03:06:37.1666667+00:00
征荣 崔 0 Reputation points
2 answers One of the answers was accepted by the question author.

how do I set the focusrect border thickness in WinXP 32- bit

I have been trying to use SystemParametersInfo to change the focusrect height and width settings as given in the documentation. Getting a correct value is not a problem. Setting to a value of 4 and then getting the result yields a 6-figure number. Thank…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,845 questions
asked 2025-05-05T18:34:40.33+00:00
brian clark 20 Reputation points
accepted 2025-05-07T10:33:33.55+00:00
brian clark 20 Reputation points
1 answer One of the answers was accepted by the question author.

Problem using StgOpenStorageEx

Hey experts, I'm going to update the guid of an Outlook msg file from "00020d0b-0000-0000-c000-000000000046" to "0006f046-0000-0000-c000-000000000046" and save the file with a new file name/extension. All my tries with…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,845 questions
asked 2025-05-06T20:43:32.44+00:00
StewartBW 1,480 Reputation points
accepted 2025-05-07T02:31:58.2166667+00:00
StewartBW 1,480 Reputation points
0 answers

SaveFileDialog Issue in Visual Basic: Application Quits After First Use

In a Visual Basic project, the 'SaveFileDialog' is correctly displayed the first time, but subsequent attempts to display it cause the application to quit unexpectedly. Here is the relevant code snippet: Private Sub cmdPDF_Click(sender As Object, e As…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,845 questions
asked 2025-05-05T11:54:50.7666667+00:00
Gaurav Gupta 0 Reputation points
commented 2025-05-05T15:39:06.69+00:00
Viorel 121.6K 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,845 questions
asked 2025-05-01T15:02:24.29+00:00
StewartBW 1,480 Reputation points
commented 2025-05-01T23:53:45.66+00:00
StewartBW 1,480 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,845 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,845 questions
asked 2025-04-29T14:10:21.2333333+00:00
StewartBW 1,480 Reputation points
commented 2025-04-29T20:22:31.27+00:00
StewartBW 1,480 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,845 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,845 questions
asked 2025-04-27T21:40:51.6433333+00:00
StewartBW 1,480 Reputation points
accepted 2025-04-29T14:06:02.77+00:00
StewartBW 1,480 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,845 questions
asked 2025-04-28T11:29:18.5066667+00:00
StewartBW 1,480 Reputation points
accepted 2025-04-28T15:14:57.12+00:00
StewartBW 1,480 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,845 questions
asked 2025-04-27T20:24:14.6433333+00:00
StewartBW 1,480 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,845 questions
asked 2025-04-27T18:47:41.3566667+00:00
StewartBW 1,480 Reputation points
commented 2025-04-27T20:19:32.33+00:00
StewartBW 1,480 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,845 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.6K 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,845 questions
asked 2025-04-26T16:05:18.5066667+00:00
StewartBW 1,480 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,845 questions
asked 2025-04-24T00:25:56.84+00:00
StewartBW 1,480 Reputation points
accepted 2025-04-26T07:13:07.5933333+00:00
StewartBW 1,480 Reputation points