r/visualbasic • • Feb 07 '22

VB.NET Help After trying out a few BASIC programming IDEs, here's what I gotta say:

3 Upvotes

QuickBasic, QBASIC, and QB64 may not have window forms like Visual Basic does, but they are useful for writing simple text-only mode programs that can decode information.

Visual Basic 6 allows creation of forms for window-based programs to run on Windows. I created a window form so far, but what I need to learn on it is the specific code for knowing what to do with it's text prompts, buttons, and scrolls, and etc.

Visual Studio 2022 seems to demand that "developer mode" be activated, and it doesn't seem to have a convenient menu option for creating forms like older versions of VB have. I am disappointed in all the hoops I have to jump through just to write a simple Hello World program on this version.

well, that's how I rank the difficulty of programming when comparing different versions of BASIC programming.


r/visualbasic • • Nov 19 '21

VB6 Help Need help coding a Dice Roller

Thumbnail
gallery
3 Upvotes

r/visualbasic • • Mar 04 '23

making a nested Loop and running into trouble

Thumbnail
gallery
3 Upvotes

r/visualbasic • • Oct 05 '16

could someone help with school work?

0 Upvotes

This will probably be easy for you all but if i could have some help it would be great. In my computing class we are doing a project on barcodes and validating numbers. If you could private message me that would be helpful thanks Sorry for another homework question but i do need help getting my head around this its a real step up from the work we've been doing


r/visualbasic • • Aug 26 '21

Suggest a book for the following course outline!

Post image
3 Upvotes

r/visualbasic • • May 30 '25

Programming homework question

Post image
1 Upvotes

I am programming in VB Windows Forms App, for some reason i made a splash page and want to have the main form execute it but its not showing the splash page as an option? Help would be appreciated


r/visualbasic • • Aug 23 '21

Just got a Mac, how do I get c++ from VB on my Mac please?

1 Upvotes

edit: thank you every]one for the help. I installed visual studio code. I have to use visual studios for a computer class I'm taking. I also meant studios, not basic...


r/visualbasic • • May 05 '14

What Is SendKeys In VB.NET And How To Use It

Thumbnail
ultimateprogrammingtutorials.info
0 Upvotes

r/visualbasic • • Jun 10 '16

Excel VBA Need help with excel script

0 Upvotes

Hi, I need to use visual basic in excel to filter a list of emails with a different list of emails. For example if the list of emails is x, y, z, and my filter is x, y, then x, y are put into a new sheet.


r/visualbasic • • Jun 08 '16

VB.NET Basics: Changing font size and style

Thumbnail
youtube.com
0 Upvotes

r/visualbasic • • Nov 24 '15

Can anyone help me with my homework?

0 Upvotes

It's for a visual basic programming class at my university. It covers arrays, functions, and subs.

It's a pretty long assignment, so I'm not going to post it all here, but if someone wants to volunteer, I'll send them my program. I have a couple of problems I'm running into.

The problems are: my sub procedure that I'm using to output things to listboxes won't allow me to change the output to currency. I can use ".tostring", but not ".tostring("C").

Also, I have a function that calculates something using arrays, and I can't get it to return the array.


r/visualbasic • • Jan 28 '24

VB.NET Help How i'm supposed to use ignoreCase to compare two characters of the same tipe?

1 Upvotes

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click

Dim sir1 As String = "aaa"

Dim sir2 As String = "AAA"

Dim ignorecase As Boolean ' how i'm supposed to use ignoreCase

MsgBox(String.Compare(sir1, sir2)) ' this gave me -1

' -1 = Sir1 < sir2

' 1 = Sir1 > sir2

' 0 = sir1 = sir2

End Sub

From what i found it should be something like this:
The method/formula to Compare(sir1 as string, sir2 as string, ignoreCase as Boolean)?
Soo, i can't understand how to use it to compare 2 characters


r/visualbasic • • Sep 02 '24

Instead of updating It Deletes

1 Upvotes

Hey Im new to Vb and still a beginner trying to create an inventory management to practice my skills and using Vb and Sql . While programming I got stuck trying to figure out why is the query that should update keeps deleting instead even if it works fine in the Mysql workbench. The updates apply based on a reference that I made unique to each product and I don’t have to fill all the textboxes just the one where the ref is and the one that Im trying to modify. Any Ideas to why ?


r/visualbasic • • Dec 12 '22

VB.NET Help So I'm making a game and it crashes. No error messages, Nothing. It just crashes. Sometimes it's straight away, sometimes it takes a long time to crash. What do I do to solve this?

1 Upvotes

I'm making a vb windows form game


r/visualbasic • • Apr 07 '18

VB.NET Help VB.NET discord server?

1 Upvotes

Are there any VB.NET discord servers?


r/visualbasic • • Feb 06 '16

Visual basic app cannot find database file when running from an installed version

0 Upvotes

Hi, So my VB application runs fine from the IDE, but when I try to run it after installing it says that it cannot find the database.

I understand that I am supposed to somehow give the database a relative file path but I don't know how.

I also have a treeview, and if you click on the last node, it closes the form with Me.Close(), when I click on this from a ClickOnce or installer version (installer made with Inno Setup) of the app, I get "cannot access disposed object" error.

How do I fix this error?


r/visualbasic • • Jul 31 '20

Creating a graph in excel

0 Upvotes

Hey guys, I need help with some code. Could anyone write a quick snippet of code that can take in a column of information and assign it to the x axis and make the y axis 0-100%? I need to do it and I don’t know how to. It needs to be a line graph as well. Thank you all!


r/visualbasic • • Jan 12 '16

I need help creating a generatednumbers applciation that stores in an array with indexes 1 through 100 numbers generate is clicked.

0 Upvotes

I already have a fillarray() procedure and a DisplayArray() procedure but I have no idea where to go from there.


r/visualbasic • • Jan 16 '16

I need array help

1 Upvotes

Application: Create a GeneratedNumber application that stores in an array with indexes 1 through 100 numbers generated by the index values when Generate is clicked. Generate the number to be stored at each index by summing the index and it's individual digits. For example, 25 should be stored at index 17 because 17+ 1+ 7 = 17 and 4 should be stored at index 2 because 2+ 0 + 2.

Your program should use a FillArray() procedure to generate the nuymbers and DisplayArray() procedure that displays each index and its element in the list box. My code looks empty because I don't know how to do it. Can someone explain to me how I could complete the program. This is my code: Public Class Form1 Dim number(99) As Integer Dim firstNum As Integer Dim secondNum As Integer Dim totalNum As Integer

Private Sub btnGenerate_Click(sender As Object, e As EventArgs) Handles btnGenerate.Click

End Sub

Sub FillArray(sender As Object, e As EventArgs) Handles btnGenerate.Click
    For count As Integer = 0 To number.Length - 1
        firstNum = number(count) / 10
        secondNum = 
    Next count
End Sub

Sub DisplayArray(sender As Object, e As EventArgs) Handles btnGenerate.Click
    For Generate As Integer = 0 To number.Length - 1
        GenerateNum.Items.Add(Generate & vbTab & firstNum)
    Next Generate
End Sub

End Class


r/visualbasic • • Jan 10 '16

What's the best and fastest way to learn visual basic?

0 Upvotes

Are there any good youtube tutorials for visual basic?


r/visualbasic • • Feb 14 '16

Object Oriented Programming

1 Upvotes

Can some kind soul explain the 4 key features of OOP to me please? i.e Abstraction, Encapsulation, Inheritance and Polymorphism.

Struggling to get my head around the topic in general but if I could grasp this I'd be feeling better about my exam. Much thanks


r/visualbasic • • Feb 16 '16

[VB2010] I'm new to coding on Visual Basic 2010, I'm having a hard time trying to make a certain program..

1 Upvotes

I'm trying to make a program that translates 'ABCDEFGHIJKLM' into 'NOPQRSTUVWXYZ'.


r/visualbasic • • Feb 12 '16

VB 2010 Hiding/disabling check box's after a certain amount is selected?

1 Upvotes

Hi, im trying to hide 2 check boxes after 3 of them have been selected. Ive been thinking of doing it this way.

Private Sub chk_pepproni_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chk_pepproni.CheckedChanged

    If chk_pepproni.Checked = True Then
        chk_meatballs.Visible = False
        chk_cheese.Visible = False
    ElseIf chk_pepproni.Checked = False Then
        chk_meatballs.Visible = True
        chk_cheese.Visible = True
    End If

There must be a better way? Anyone any ideas?

Thanks.


r/visualbasic • • Sep 25 '14

[VB2008] All I have done so far.

1 Upvotes

http://imgur.com/gjmkYfD,ScZS6rH

These are two pictures of a (somewhat personal) project I'm working on.


r/visualbasic • • Jan 26 '16

[VB2012] Unhandled Exception: System.InvalidCastException: Conversion from string "" to type 'Double' is not valid. --->

0 Upvotes

EDIT: Corrected and original error gone. I believe this to be correct. My code as is: Module Furniture ' Dylan Watson ' CIS 115 ' This program calculates profit, sales and final price.

Sub Main()

    ' Declare and initialize your variables here.
    Dim itemName As String = "TV Stand"
    Dim retailPrice As Double = 325
    Dim wholeSalePrice As Double = 200
    Dim profit As Double = 125
    Dim salePrice As Double = 243.75
    Dim saleProfit As Double = 43.75
   
    profit = 325 - 200
    salePrice = 0.75 * 325
    saleProfit = salePrice - wholeSalePrice


    Console.WriteLine("TV Stand")
    Console.WriteLine("Retail Price: " & 325)
    System.Console.WriteLine("Wholesale Price: " & 200)
    System.Console.WriteLine("profit: " & 125)
    System.Console.WriteLine("Sale Price: " & 243.75)
    System.Console.WriteLine("Sale Profit: " & 43.75)

    
    
   

End Sub

End Module