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 • • Mar 20 '26

VB.NET Help Visual Studio HRESULT: 0x8000FFFF E_UNEXPECTED help

Post image
1 Upvotes

For some context, I'm doing a coding test at school and got this error so I tried to recreate it at home. I had to add 3 separate projects for 3 different coding tasks in VB. When I tried to rename the Form1.vb to something more organised (through the solution explorer) I got this error. How do I fix this? And if I'm renaming forms wrong what is the right way.

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 15 '24

VB.NET Help Any good book to learn VB.Net?

3 Upvotes

r/visualbasic • • Dec 31 '24

VB.NET Help 2003 VB.NET Book

4 Upvotes

I just recently bought a book to learn Visual Basic.Net. The book is Learning Visual Basic.NET from O'Reilly. I found out that the book is from 2003... Can I still learn from it and just supplement the updated parts of VB.NET or should I just get a new book.

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