Quantcast
Channel: VBForums - Visual Basic .NET
Browsing index pages (27527 articles)

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


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

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

I 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


Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

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


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

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

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


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

Books 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


VS 2015 Why does VS act strangely?

I am running VS2015, version 4.8.03761 on my Windows 7 machine. I opened a project, ran it, no issue. However, the second time I tried to run the project (same VS session), VS did not run it. I put a...

View Article

Moving to VB.NET and WIN 11 Home

I will try not to be wordy, but I need help in moving on to WIN 11. The background is important. I have written VB6 for over 20 years, and VB4, and vb3, before that. (Don’t remember vb5). I write no...

View Article


Asynchronous programming

Can anyone recommend a good tutorial or a book on Tasks, and Asynchronous programming?

View Article

VS 2015 Why isn't my super simple program not working???

I did a google search and was shown code that I essentially copied directly. Here is my code: Code: Imports System.Net.Http Module Module1     Private ReadOnly client As New HttpClient()     Sub Main()...

View Article

PlaceholderTexr

I am new to VB 2026. My laptop has Windows 11, I have reached PlaceholderTexr in the book I am following but it does not seem to work for me. I have a textbox (textbox1) and can see PlaceholderText in...

View Article
Browsing index pages (27527 articles)


Latest Images