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
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

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

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
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

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
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
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
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

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…