Debugging DLLs
This is a new one. I have a program that works using plugins that are dlls. In any plugin there will be one or more objects that implement one of a small number of interfaces. Each of these interfaces...
View ArticleVB.Net Script to download a file from network to a local drive
I have an application I use to integrate data from external system to my accounting system. The application has the ability to run VB.Net scripts as a "pre-integration" task. I have a nuance situation...
View ArticleVS 2022 Using VmbNET to access multiple GigE cameras having a single trigger
HI - I am coding an app titled GigE_Camera_Reader - we have 2 new Allied 125MP cameras (RBG and IR) to replace 2 Phaseone 100MP units. I have coded components and now have a single camera solution...
View Article[RESOLVED] vb.net regex split on + and - but not - after * or /
How can I use regex split to split on + and - but not - after * or / ? For example… Dim s as string = “3*2+6/-3-3*2” The splitted parts should be… “3*2” “6/-3” “3*2”
View Article[RESOLVED] VS2022/26: MDI Parent behaviour
NOTE: I'm trying to get my bearings with MDI vs SDI Here is a screenshot of the application (it's not finished yet): The panel on the right side of the MDI contains a list of objects and some controls....
View ArticleConvert byte array into Image
Hello everyone, I'm having a problem to run this: Code: Public Function Cat_Logo(ByVal ID As Integer) As Image Dim ImgLogo As Image = Nothing Dim sql As String = "SELECT Image FROM categories...
View ArticleChange Date format returned from a class
Hi can anyone help with this code snippet to change the date being returned from a class to express date only and illuminate the time the return value? MessageBox.Show($"Person created: {p.FirstName}...
View Article[RESOLVED] Using Json to extract information from a website.
I'm having a lot of trouble trying to get this code to work. Can anyone help fix the code. I'm using a Module, Form, textbox and button all using their default names. I'm using VS2020 with .Net10...
View ArticleVS 2015 Free stock price API availability?
I wrote a VB.NET program for my Windows 7 machine to replace a desktop gadget that no longer functions. The program shows the current price of stocks listed in a txt file, updating one ticker about...
View Article[RESOLVED] Dictionary Key is Class
I am trying to implement a Dictionary with a Class as a key. The class implements IComparable(Of ), IEquatable(Of ) and overrides Function GetHashCode. The disctionary has every instance of the class,...
View Article[RESOLVED] "Concurrency violation: the DeleteCommand affected 0 of the...
I have an array of DataTables and Adapters In this instance I have assigned one of the tables to a unique DataTable varable "rs" which is associated with the giLastTableIndex index as appears in the...
View ArticleDictionary Key is Class
I am trying to implement a Dictionary with a Class as a key. The class implements IComparable(Of ), IEquatable(Of ) and overrides Function GetHashCode. The disctionary has every instance of the class,...
View ArticleQuestions Surrounding NotInheritable
I've been developing in VB.NET for a while now (check the VBF join date), but I've only recently started using AI to help me develop. Something I do very frequently is give an LLM a database schema...
View ArticleI have a data grid I want to autosize to changed font size
I have the following code but it only changes font, not the grid any suggestions appreciated, thanks Dim newfont As New Font("Lucida'console", 9.0, FontStyle.Bold) Me.GridMatrix.Font = newfont...
View Article[RESOLVED] Show Nothing In Disabled NumericUpDown
I'm building a form that captures number of hours worked. This is a rewrite of a legacy application that didn't use proper controls to capture input, so one of the things that I'm doing is replacing...
View ArticleShow Nothing In Disabled NumericUpDown
I'm building a form that captures number of hours worked. This is a rewrite of a legacy application that didn't use proper controls to capture input, so one of the things that I'm doing is replacing...
View Article[RESOLVED] Bypass FormClosing
I have a WinForm project targeting .NET Framework 4.5 with two forms: FormStartup and FormMainMenu. The project's startup form is FormMainMenu and the shutdown mode is set for when the startup form...
View Article[RESOLVED] Registry.CurrentUser.DeleteSubkey issues VS2026 VB10
Given the following: Code: My.Computer.Registry.SetValue("HKEY_CURRENT_USER\MyTestKey", "MyTestKeyValue", "This is a test value.") I wish to do one of the following: a. Delete "MyTestKeyValue" or b....
View ArticleRegistry.CurrentUser.DeleteSubkey issues VS2026 VB10
Given the following: Code: My.Computer.Registry.SetValue("HKEY_CURRENT_USER\MyTestKey", "MyTestKeyValue", "This is a test value.") I wish to do one of the following: a. Delete "MyTestKeyValue" or b....
View Article"Concurrency violation: the DeleteCommand affected 0 of the expected 1 records."
I have an array of DataTables and Adapters In this instance I have assigned one of the tables to a unique DataTable varable "rs" which is associated with the giLastTableIndex index as appears in the...
View Article