Answer the question
In order to leave comments, you need to log in
Code conflicts with closing winform, how to fix it?
https://cloud.mail.ru/public/KgHg/AVhEYgMoF
Please watch the video and help please))
Answer the question
In order to leave comments, you need to log in
NullReferenceException is usually thrown if somewhere there is a call to something, but the object itself has not been created yet.
I will give an example you have a class Person
class Person
{
public string Name;
public string Surname;
}
class Program
{
static Person person;
static void Main(string[] args)
{
person.Name = "Jim";
Console.WriteLine(person.Name);
Console.ReadKey();
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question