Search results for query: *

  1. B

    Changing textbox backgroud color with exception

    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)...
  2. B

    Simple Calculator Help Needed

    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 =...
  3. B

    Dataview/Rowfilter help

    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...
  4. B

    Free Code Generator

    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...
  5. B

    Putting in a Carriage-return and line-feed in a text string.

    Putting in a Carriage-return and line-feed in a text string. Can one you guys give me an example of this?
  6. B

    Option Strict On

    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...
  7. B

    Byref Byval calculation problem

    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...
  8. B

    What is With/EndWith Used For?

    Please give me an example as well.
  9. B

    Try/Catch Help

    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 =...
  10. B

    How do I code to clear textbox when clicked?

    How do I code to clear textbox when clicked? This will be under the private sub of the textbox right?
  11. B

    Payroll Program help needed

    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...
Back
Top