Visual Basic loop
Right now my current code is Do ProgressBar1.Value -= 5 Loop While ProgressBar1.Value < 100 But its too fast so it instantly makes the value negative, is there a way i can slow down this loop without a timer? This is for Visual…
Datagridview Not Showing derived class properties?
Hallo, I have a following code and i am trying to get all the properties from the derived class to showup on the datagridview through bindingsource. Any idea why it is not showing up? thanks Imports System.ComponentModel Public Class Form1 Public BS…
file attribute value
hello friends i have some files in my pc that have file attribute value (18, 34) ,but file attribute table here does not contain above values. my quesion :why are above values does not present in file attribute table ,by the way the value (18) for…
Problem writing changes back to access database from gridcontrol
Hi I am populating a grid with data from an access database file (.accdb), and it works fine for showing my data. But I can't seem to get it to save changes from the grid back to the database file, my adapter.update(table) command completes without…
Save X509Certificate2 as P7B / PKCS#7
Hello I need to select a X509Certificate2 from a store and save it as PKCS#7 with P7B extension, the same format as we save with certmgr as p7b. I'm using .NET Framework 4.8 WinForms, anyone knows a working solution for that? Thanks in advance :)
using Vb.net 2010 error "could not open macro storage" creating a word document
I am using visual studio 2010 to create a word document with downloaded code, I have office97 Microsoft Word on my computer. 'Start Word and open the document template. oWord = CreateObject("Word.Application") oWord.Visible = True …
How do I add an existing form from another VB.NET project to my new VB.NET project? I have several forms that I want to reuse.
How do I add an existing form from another VB.NET project to my new VB.NET project? I have several forms that I want to reuse. Do I just Select the Add Existing Item and select the desired Form.vb file in my existing VB.NET project?
Detect MZ executable files
Hello, I found a code online which works to detect many MZ executable files, but not all, anyone knows where can I extend it to cover detection of all executable files? ie Win16 executable files etc... I'm on the .Net Framework 4.0 Try Dim…
PEReader in .Net Framework?
Hello experts, Going to determine if a file is an executable of any kind, exe dll ocx etc... Checking the initial 2 bytes to be MZ or ZM is not accurate at all, so here's a good way, the second sample,…
Read magic number
Hello, I have problem understanding one particular file type here: https://en.wikipedia.org/wiki/List_of_file_signatures ts MPEG Transport Stream (MPEG-2 Part 1) Magic number hex signature is only 1 byte: &H47 / G But there are notes I cannot figure…
DataError when using an AutoComplete ComboBox
Hi Windows Forms Application using .NET Framework 4.7.2 Strange one. I an unsure if this is something that may only be on my system or not. Any help would be appreciated. A DataGridView bound to a DataTable (dt) with 4 columns, a ComboBox bound to the…
VB.net Object creation can be simplified
This line of VB.net code produces a "IDE0140 object creation can be simplified" warning. How do I resolve this? Dim SQLCommand1 As SqlCommand = New SqlCommand
OLE1.0 Format
Hello, As mentioned here: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-oleds/fdc5e702-d09e-4344-a77f-eb079d41f23f There are 2 versions of Microsoft OLE Compound File: OLE1.0 and OLE2.0 Formats I know the magic number of the OLE2.0…
How do I sign a Visual Studio application with an EV Certificiate
I've been trying to distribute MANASYS Jazz (https://jazzsoftware.co.nz/) with ClickOnce, and I recently purchased an OV Code Signing Certificate to identify Jazz Software Ltd. However I found that a prospect was still unable to download my software,…
VB Forms application and PictureBox location
Hi, I have a visual basic Windows Forms application. Form1 has one PictureBox, PictureBox1. Problem Description: When this application is used on different screen resolutions the picture box /picture shows the wrong position. What I have done so far…
system.net.webclient post error 400
I have this HTTP post that with curl under w10 work fine curl https://auth.sinch.com/oauth2/token -d grant_type=client_credentials -u username:password This require a basic authentication and return a token I need to implement this under vb.net…
Hide Form's Maximize Button
Hello experts, In a Windows Forms App (.NET Framework 4.5 or 4.8) how to hide the maximize button of a FixedSingle form? I Set MaximizeBox to False, while Minimize is enabled, and need to hide the middle Max button. Please advise and help if there's a…
Implicit conversion
Hello, I've converted a C# project to VB (using a tool - I don't know C#) and my converted project has 4 warnings. 2 are warning BC42016: Implicit conversion from Long to Integer for the below 2 lines: Source C#: byte[] buffer = new…
Currently using Visual Studio 2022 for my vb.net windows form app and the designer fails to load at "Loading Designer...You can continue working while the designer is loading in the background"
I'm currently using Visual Studio Community 2022 17.7.1 and .NET 6.0
How to retrieve values from a Database for computation?
Hi all, I am writing an Astrology program, where I need to use Latitude & Longitude of places for the calculation to create a Horoscope. I have made a Database of Latitude & Longitude of places. I couldn't find out how to get the values of…