Search results for query: *

  1. LostNativ

    Combo Box Error

    I am trying to create a WPF Watts Calculator. The user is to select the type of calculation from the combo box and then fill in the values click calculate and receive the result. However, I am getting a combo box error. I am not sure how to handle it. the error reads CS1061: 'type' does not...
  2. LostNativ

    Watts Calculator, struggling to get my exception handling working.

    I really appreciate this. The school I go to is still teaching us variables and loops it's a bit of a shoddy school. I got this project from the students at another school I want to be good at this so I am joining forums and doing projects. In my neck of the world, you still need a formal...
  3. LostNativ

    Watts Calculator, struggling to get my exception handling working.

    I would, but I am not quite sure how. Really new to this and I am doing this cause at the institution I am enrolled we aren't being challenged so I am taking it upon myself type thing. I am trying to learn the principles and best practise...
  4. LostNativ

    Watts Calculator, struggling to get my exception handling working.

    Thank you, however, there is a possibility of a user dividing by 0 that a TryParse won't be able to handle. I just ran it as TryPase in a while loop. It worked for the character issue but not for divide by zero.
  5. LostNativ

    Watts Calculator, struggling to get my exception handling working.

    I want to be able to catch errors and ask the user for valid inputs. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace S1P1 { class Program { public delegate float WattsLawDelegate(float num1...
Back
Top Bottom