Word Interop
I work for the Revisor of Statutes, State of Missouri. We are responsible for the laws of the state. One of our major duties is the printing of new / revised laws. Going from legislation that has...
View ArticleVS 2022 Forms won't load when opening old project. ".Net" error
I tried to open an old VB project I started last year, but VS 2022 refuses to open it, giving me the following error: "The current .NET SDK does not support targeting .NET 8.0. Either target .NET 6.0...
View ArticleDrowning in Drag and Drop Hell
I'm working on a VB 2017 WinForms application, and am absolutely tearing my hair out trying to get a simple drag and drop operation working. On the main form I have two listview controls (both with the...
View ArticleVS 2022 [RESOLVED] Form1 wont load?
I need help understanding this error, see screen shot. All I did was add four textboxes with some strict alpha numeric control. And now it will not load the user form. This is a new version of my...
View ArticleVS 2022 Form1 wont load?
I need help understanding this error, see screen shot. All I did was add four textboxes with some strict alpha numeric control. And now it will not load the user form. This is a new version of my...
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 ArticleWebview2 Deployment
Hi all, I recently converted a VB.net (VS 2022) Desktop Application from a WebBrowser control to a WebView2 Control. I have everything work just as I would like. When I create an installer and include...
View ArticleWeird Array-related issue.
I'm not sure what's going on, but the following code conks out at the 4th iteration (of 12) and I can't figure out why. Short version: I am trying to set up a table map ahead of creating a SQLite...
View ArticleExclude last record from DatagridView while retrieving data -Using SQL Server
Hi, How to exclude the last record from DatagridView while retrieving data (I am using a SQL Server Database)? For example, I have 10 records for a particular customer and I want to show only 9 records...
View ArticleBooks about VB and VB.NET
Hello. I'm looking for books, either the PDF file or the title itself. Basic books are fine, but I'd prefer advanced books that are useful for automation. I'm not looking for anything specific beyond...
View Article