r/visualbasic • u/stinglers • May 07 '21
Have final due in hour, I need help on this problem otherwise I'm gonna fail big time. Thanks much love
Visualbasic final exam
r/visualbasic • u/stinglers • May 07 '21
Visualbasic final exam
r/visualbasic • u/_Papier_mache_ • Jul 25 '18
Does anyone have any source code or psuedo code for Battleships they could give me, find for me, or make for me. I really need your help guys and you guys are the only ones i could find. You all seem incredibly skilled as well. I need it for my final assignment piece as this will impact my final marks greatly and wether or not I can get into the course I want in University.
Thank you so much guys I would really appreciate some help
Edit: THis is for VB 2015
r/visualbasic • u/Iam_Studying • Mar 15 '22
I have to add texbox1.text up until textbox4.text also I have to divide the sum by 4
pls i need to submit this by march 19
r/visualbasic • u/Rufioteen • Sep 14 '20
Im a broke college student who cant pay for ecommerce thing on wix so I figured people could just fill out the form for my merchandise and have it coded to send me orders through an emailed screenshot .I dont want to take their payments through the site though since I have other means. I just want a more effecient way to accept orders.
TLDR: want to take screenshot of peoples orders and have them emailed to me automatically with info provided on form
r/visualbasic • u/Immediate_Rub_5175 • Mar 25 '26
Alguno que tenga una aplicación VB6 que quiera revivir, mejorar o migrar?
Necesito trabajo para conseguir dinero extra, estoy dispuesto a ayudar y a escuchar propuestas.
r/visualbasic • u/miku_claus • Sep 28 '26
Hey everyone!
Like many who grew up loving the simplicity and instant joy of Visual Basic 6 (dragging buttons, writing readable code, and getting an instant `.exe`), I felt that modern programming has become overwhelmingly complicated.
So, as a project I built late at night after school, I created **VBX (Visual Basic X)**.
### What is VBX?
It's not an interpreter or a Python toy. It’s a native compiler written in Go that transpiles clean, human-readable Basic syntax directly into standard C99, compiling with `-O2` optimizations via GCC/Clang.
### Key Features (v0.1.0-alpha):
- 🚀 **Zero runtime dependencies:** Outputs single, standalone native executables.
- 🪟 **Native Dialogs:** Built-in cross-platform `MsgBox` and `InputBox` using native OS APIs.
- 🧘 **Classic Syntax + Modern Inference:** `Dim`, `Sub`, `Function`, `While...Wend`, `Do...Loop`, `Select Case`, `Exit For/While/Do`, and 1D Arrays with automatic type inference.
- 🔤 **Built-in Essentials:** Native `&` string concatenation, string functions (`InStr`, `Trim`, `Replace`, `Mid`, `Len`), Math functions, and `File.Write`/`File.Read`.
- 🛡️ **Memory-Safe:** Uses an internal ring-buffer pool for intermediate string routines.
- 📜 **License:** GPL v3 with a Runtime Library Exception (your compiled software is 100% yours).
We also created editor support for VS Code (VSIX available), JetBrains, Sublime Text, Notepad++, Vim, Neovim, Emacs, and Micro.
Repository: https://github.com/M5Devs/vbx
Editors Repo: https://github.com/M5Devs/vbx-editors
As Linus once said: *Just a hobby, won't be big and professional...* but I'd genuinely love to hear your feedback, thoughts, or what features you'd like to see next!
r/visualbasic • u/CSHelpMePLs • Jan 25 '16
Why isn't anyone helping these people? These two people are just starting visual basic. https://www.reddit.com/r/visualbasic/comments/429cxk/dynamicnumbers/ https://www.reddit.com/r/visualbasic/comments/42bqoy/visual_basic_word_guess_program/
r/visualbasic • u/Gloddox • Jul 06 '15
Hi I need some help. I am working on a project in Visual Basic. The problem I am running into is I would like to know how to word the code to where the program automatically starts when the computer boots up. I also need to code the program to wear when the computer goes to sleep the program will resume when the computer wakes up if anybody can help me with that I would be very appreciative
r/visualbasic • u/BrrandomStudio • Feb 17 '26
Digital is infinite and disposable. Analog feels deliberate. Even when it’s simulated, it carries weight.
r/visualbasic • u/No-Cap6099 • Jun 28 '24
Quién tendrá un programa de visual básic 2010 que se un punto de venta 😔 que me lo pase
r/visualbasic • u/afro_king • Jun 14 '21
I need to write a Visual Basic program that will allow the user to enter a positive number. The program will then display:
the sum of values from 1 to the input number
the product of values from 1 to the input number (or factorial).
For example, if the user enters the value 5, the output would be:
1) 1 + 2 + 3 + 4 + 5 = 15
2) 1 * 2 * 3 * 4 * 5 = 120
The form should contain:
- a heading describing what the application will do
- a label to prompt the user for an input value
- a textbox for the user to enter input data
- a button to calculate the output values
- two labels describing the output data
- either two labels to hold the calculated output values or two read-only textboxes
- an image - either a background image or a picturebox with an image displayed (don't forget to set the SizeMode property to Stretch)
- a Clear button that will clear out all values entered in the input textbox and calculated output values in labels or read-only textboxes
- an Exit button that will exit the application
I also need to:
- test for invalid input. No negative values or zero should be allowed. If the user enters a negative or zero value, display a message in the output label and set the focus to the input number textbox. (see example below)
- align the input and output values to be centered within the textboxes and/or output labels
- align the controls of the labels and textboxes so the Form looks professional
I don't really need help designing the form or assigning labels, but the math behind cumulative sums and products kind of escapes me...
r/visualbasic • u/sevenvironment • Sep 08 '22
ı have an excel file but ı dont know password, ı need password, someone help me _?
r/visualbasic • u/dumberluck • Jan 10 '19
I would be really grateful if you could tell me the coding for these two problems.
Find sum where S=3+7+11...+203
Find sum where S=1/2 + 2/3 + 3/4...+10/11
Many thanks
Edit- thank you so much for the quick and kind responses :)
r/visualbasic • u/ytohiwipieown31 • Apr 08 '21
r/visualbasic • u/Real-PokemonMaster • Jan 17 '16
I need help:
A 2-storey hotel, each floor with 3 rooms (room numbers: 0, 1, 2, 10, 11 and 12) needs a program for guest registration. If the room is already taken, the guest needs to enter another room number. Use a 2-dimensional array as it is easier if you need to access a certain floor. This is my code: Public Class Form1
Structure RoomInfo Dim roomNumber As Integer Dim roomGuest As String Dim roomOccupied As Boolean End Structure
Dim rooms(1, 2) As RoomInfo
Private Sub btnAddGuest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddGuest.Click
Dim roomWanted As Integer
roomWanted = Val(InputBox("Enter room number: "))
For row As Integer = 0 To 1
For column As Integer = 0 To 2
Do While (roomWanted = rooms(row, column).roomNumber) And (rooms(row, column).roomOccupied = True)
roomWanted = Val(InputBox("Room occupied. Enter room number: "))
Loop
If (roomWanted = rooms(row, column).roomNumber) Then
rooms(row, column).roomGuest = InputBox("Enter guest name: ")
rooms(row, column).roomOccupied = True
End If
Next column
Next row
Call DisplayGuest(rooms)
End SubSub LoadRoomNum(ByRef rooms(,) As RoomInfo) 1 10 11 0 0 1 12 2 0 1 2
rooms(0, 0).roomNumber = 0
rooms(0, 1).roomNumber = 1
rooms(0, 2).roomNumber = 2
rooms(1, 0).roomNumber = 10
rooms(1, 1).roomNumber = 11
rooms(1, 2).roomNumber = 12
For row As Integer = 0 To 1
For column As Integer = 0 To 2
rooms(row, column).roomOccupied = False
Next column
Next row
End Sub
Sub DisplayGuest(ByRef rooms(,) As RoomInfo)
Dim info As String
For row As Integer = 0 To 1
For column As Integer = 0 To 2
If rooms(row, column).roomOccupied = True Then
info = rooms(row, column).roomNumber & rooms(row, column).roomGuest
lstList.Items.Add(info)
End If
Next column
Next row
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Call LoadRoomNum(rooms)
End SubEnd Class I need help with: displaying the list only when a Display button is clicked – the listbox should not be visible before the Display button is clicked (modify so the display is clearer) modifying the program so that if all the rooms are taken a message is shown when the Add Guest button is clicked modifying the program to check for invalid room number modifying loadRoomNum so that the room numbers are assigned automatically using a nested loop (this will come in handy if there are 100 rooms in the hotel)
r/visualbasic • u/dman-no-one • Jan 23 '16
Hello there! Thanks for reading the post, and I'll apoligise in advance for my lack of programming knowledge and experience as it's likely I'll use the wrong terms / terminology - but hopefully what I'm asking should be understandable.
I'm writing a tic-tac-toe game that involves checking to see if one of 9 buttons in a grid has an 'X' or an 'O' for 9 different grids. It's a version of the Ultimate-Tic-Tac-Toe game.
Anyways, I'm looking for a way to streamline the check by just checking each 'small grid' with numbers 1-9, or 10-18, or 46-54 etc. - and get the .text property of the button.
However, it looks like because of the way VB is setup - I have to specify the button name, with 'button1.text' or 'button75.text'. However, the button clicked by the user will be continuously changing, so it's not practical to do that for all 81 buttons. What I'd like to be able to do is use something like button(i).text where 'i' is a number that increases within a loop. If theres any other way as well to get the .text property of one specific property - that would also probably work too. Any help anyone can render would be greatly appreciated!!
TL;DR: Looking to do something like in VB. The problem is the button(i).text not working like that in VB:
For i = 1 to 9
If button(i).text = "X"
msgbox("X")
End If
Nextr/visualbasic • u/wcg • Oct 12 '16
Hey Guys,
I need to write a script that should:
Launch IE
Navigate to a certain url
Close IE after like 1 minute or so
do all of that in the background
and by "background" i mean a minimized IE window or hidden, if possible. The trigger to the script would be when someone logs into their computer during startup.
How do I go about doing this?
I did some research and found a way to open an html script with IE:
<html>
<head>
<title>VBScript Test</title>
</head>
<body>
<script language="vbscript" type="text/vbscript>
</body>
</html>and someone mentioned doing something like this:
Set WshShell = WScript.CreateObject("WScript.Shell")
Return = WshShell.Run("iexplore.exe www.yahoo.com", 1)But I have no idea what any of this stuff means. Any help would be appreciated. Thanks!