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

VS 2022 Debug Issue

I have a forms app that contains these declarations: Code:     Private allActSN As New Dictionary(Of String, Boolean?) Inside of a Task I have a statement like this: Code: allActSN.Add(sns, Nothing) In...

View Article


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


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

VS 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


Image may be NSFW.
Clik here to view.

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

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

Change 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


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 Article


Image may be NSFW.
Clik here to view.

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

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

Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

VS 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

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


[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

[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
Browsing index pages (27529 articles)


Latest Images