Search results for query: *

  1. L

    Question How to change a rows object (Gridview)

    I currently have a gridview in my web form (restaurant) and im trying to make it so you can complete an order. I have a gridview with a row of Buttons and I'm trying to get the row from where the button is pressed and then change the (row's) order to completed. Does anyone understand how to do...
  2. L

    Resolved Validation failed for one or more entities

    I am trying to create a website where you can order pizza's. I'm currently following a course from Bob Tabor and I've encountered 2 problems (2nd one solved): problem 1 *Solved? (See Edit 2)*: When I try to save the Orders (that the customer made) to my database it gives me this exception...
  3. L

    Resolved Index was outside the bounds of the array?

    OHHH, thank you so much! It is fixed completely, I didn't know that it only went to 10. The only thing I'm confused about is that creepily fitting video you got there.
  4. L

    Resolved Index was outside the bounds of the array?

    (Reposting this: My last thread was randomly removed?) I'm currently making a web application, and I'm trying to make an array of Images, but it isn't working? It says the array is out of bounds even tho the numbers are definitely correct? Are there any ways I can fix this? Thanks! Code: using...
  5. L

    Problem with idle game (Running mutiple lines of code at the same time)

    Maybe there is a special package I need? I just learned about them, do you have any advice?
  6. L

    Problem with idle game (Running mutiple lines of code at the same time)

    Could you please give me an example code? I'm a bit confused. Isn't there another way to make a game with c#? I'm trying to make an idle game so you generate money over time but isn't there an easier way to do this? I want to make a program where you can buy "factories" that produce money over...
  7. L

    Problem with idle game (Running mutiple lines of code at the same time)

    I'm trying to make an idle game, but I don't know how to run 2 scripts at the same time. Scripts: 1. (Main Program): using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using ClassLibrary; using System.Threading.Tasks; using...
  8. L

    Question How do I read what user writes in the console (before hitting enter)?

    But how do you read a key? Edit: Fixed thanks!
  9. L

    Question How do I read what user writes in the console (before hitting enter)?

    I am trying to make the color of text change when the user inputs a certain word in the console (before they hit enter) so it'll come out a certain color, I searched on google and saw no one has an answer. Is there any way to do this? if ('input text before enter' == "Exit") {...
  10. L

    System.NullReferenceException: 'Object reference not set to an instance of an object.'

    Tysm I'm just stupid, I understand everything now, Thanks!
  11. L

    System.NullReferenceException: 'Object reference not set to an instance of an object.'

    These are the vaguest replies I've ever gotten, can you explain what you mean please? Edit: Aren't I making a car here? myCar[slot].Make = "test"; myCar[slot].Model = "test"; myCar[slot].Year = 1043; myCar[slot].Color = "test"; I'm trying to...
  12. L

    System.NullReferenceException: 'Object reference not set to an instance of an object.'

    Don't I create a new Car object when the line Car[] myCar = new Car[10]; gets executed? I'm a bit confused.
  13. L

    System.NullReferenceException: 'Object reference not set to an instance of an object.'

    Sorry if I'm stupid, I'm just a beginner. I'm trying to make a simple program and it's not really working? If I run the application, but it only says and stops: System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object...
Back
Top Bottom