Option Strict On
Public Class Form1
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
Try
If IsValidData() Then
Dim MonthlyInvestment As Decimal = Convert.ToDecimal(txtInvestments.Text)...
I am having a little trouble and I belive it is in equal button code.
Option Strict On
Public Class frmCalculator
Dim Var1 As Integer
Dim Var2 As Integer
Private Sub btn0_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn0.Click
txtData.Text =...
What I have to do is get the Customer ID from a textbox. Then the program checks in the database for that customer ID. After it finds the Customer ID it checks and see if it has date closed. If it does then it spits it out in a listbox.
I am working with accessdatasource using ASP.Net in vb...
My professor was talking about how there are programs that help programmers program. He says all you need to do is built the GUI and give all the information in your class and sequence diagrams and it will spit out the code for you. I believe you can get the code in more than one language. I...
I have the option strict on but it says that I can't convert string to decimal. The ticket price has to be as string. That is how my professor wants it. Please tell me how I can fix my code. Thanks guys.
Public Function TicketPrice() As String
If mstrDestination = "Washington,DC" Then...
I am suppose to use byref and byval but my calculations are not coming our right. Please help me guys it is due today.
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
'DECLARATION SECTION...
Dim blnErrorFlag As Boolean
Dim UserError1 As InvalidCastException
Dim UserError2 As ArithmeticException
Try
If CDec(txtCarSalesPrice.Text) > 100000 Then
MsgBox("Car Sales Price Exceeds 100000. Enter Smaller Number", MsgBoxStyle.Critical)
txtCarSalesPrice.BackColor = Color.Red
blnErrorFlag =...
Dim decSellingPrice As Decimal
Dim decCost As Decimal
Dim decProfit As Decimal
Dim decLoss As Decimal
If there is a loss, the Profit or Loss BackColor is red and its ForeColor is white. If there is a Profit, the BackColor is light-grey and the ForeColor is Black.The Commission BackColor is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.