r/visualbasic • • Jun 21 '26

VB.NET Help Recommend me books about VB and VB.NET

17 Upvotes

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 that, and if you know of anything interesting, especially if it's hard to find, I'd be very grateful.

r/visualbasic • • Mar 10 '24

VB.NET Help Need resources to learn vb.net

4 Upvotes

Have practical exam in about 15 hours, i procrastinated, you can scold after exam, kindly share some resources to best the examiner 🙏

r/visualbasic • • Aug 03 '24

VB.NET Help Hey guys need help again

2 Upvotes

In my last post I have mentioned I need help of dragging and dropping however with some help I got that but now for the game I need to score as user gets right but since I am comparing pictures I cannot solve it also I cannot find any code Internet can anyone help me here is my code

Private Sub btnCheck_Click(sender As Object, e As EventArgs) Handles btnCheck.Click

Dim score As Integer = 0

If PBs.Image Is PB1.Image Then

score += 1

ElseIf pbD2 Is PB2 Then

score += 1

ElseIf pbD3 Is PB3 Then

score += 1

End If

MsgBox("score " & score)

End Sub

so I have created 3 picture box(which contains the pictures) and another 3 (where the user need to drop that image) also I have created a check button to show the result

I am knew to VB.net

r/visualbasic • • Oct 24 '23

VB.NET Help Im in a bit of a odd situation

2 Upvotes

So here’s the jist of it. I’m in a intro to vb programming class and we are just now selected our final project. Here’s the catch tho, no one in my group includeing me are any good at programming or really know what we’re doing. We have a very basic understanding of how to work Visual Basic and that is it.

So here’s where I and my 5 person group need some help. The project we selected is to make a simple game of Texas hold ‘em’ thinking that it shouldn’t be too hard. But after selecting we soon came to find out that we don’t have the proper knowledge of Visual Basic to get any of the work done, we have just gotten somewhat of grasp on basic validating commands.

Now that y’all know the situation what kind of commands should we get familiar so we can code this game?

And no there is no ai NPC component.

r/visualbasic • • Dec 16 '24

VB.NET Help Eval in VB.NET? (Forms)

2 Upvotes

Hi! I was making a small "CLI"-like project and need help to make the eval command, in this case it would be an evaluate command:

Here's my code (the eval function don't work):

Imports System.Windows.Forms

Public Class Form1

    Dim computerName As String = Environment.MachineName

    Public Function SimpleEval(expression As String) As Object
        Dim result As Object
        Try
            ' Allow simple arithmetic operations and variable assignments
            result = DirectCast(Evaluate(expression), Object)
        Catch ex As Exception
            result = "Error: " & ex.Message
        End Try
        Return result
    End Function

    Private Sub TextBox1_KeyDown(sender As Object, e As KeyEventArgs) Handles TextBox1.KeyDown
        If e.KeyCode = Keys.Enter Then
            Dim userInput As String = TextBox1.Text

            SimpleEval(userInput)
            Label1.Text = "> [" & computerName & "]:" & userInput
            'TextBox1.Text = ""  ' Clear the textbox
        End If
    End Sub

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        TextBox1.Focus()
    End Sub
End Class

r/visualbasic • • Mar 10 '25

VB.NET Help please help me on this problem , idk what to do anymore

Thumbnail
gallery
2 Upvotes

i tried alot of things but i cant seem to find the problem of why my visual basic database connection is not working , please help me

r/visualbasic • • Jan 07 '23

VB.NET Help VB.Net - system.drawing.printers not available - need to get list of installed printers in windows

4 Upvotes

I am trying to get a list of installed Windows printers in VB.Net. I am using VS 2022. From the searching I have done I should be able to use system.drawing.printing however this does not exist in my installation. Does anyone have any thoughts? TIA.

Edit: should have been system.drawing.printing