• /r/visualbasic
  • Why won’t my application give me an output

    This is what I get when I run the application: http://imgur.com/a/ZwPe2 Here’s is my code Public Class Form1 Function CalculateRetail(ByVal decWholesale As Decimal, ByVal decMarkup As Decimal) As Decimal Dim decWholesaleCost As Decimal = 0 Dim lblRetail = decWholesale + (decWholesale * (decMarkup / 100)) Return lblRetail End Function Function WholesaleCost() As Decimal ‘ This […]

  • /r/visualbasic
  • Imports command

    Hey guys, im new to vb, and when I am looking at some people’s code, I see up on the top of the code they have a command called ‘imports’ I think it said imports.system.net.sockets or something like that. So my question is, what does the imports command do? Thanks in advance submitted by /u/WillHanz11 […]

  • /r/visualbasic
  • Help Identifying errors in code

    Public Class frmPirateBattle Dim movepicPirates As Integer = 2 Dim picPirate(17) As PictureBox Dim whichpicPirate As Integer Dim PirGun(17) As Boolean Dim lblPirGun(17) As Label Dim gun As Boolean Dim gun1 As Boolean Dim gun2 As Boolean Dim gun3 As Boolean Dim gun4 As Boolean Dim gun5 As Boolean Dim score As Integer Dim lef […]