I'm carrying a value from one form to another, it nearly works but i'm getting the following error: System.NullReferenceException was unhandled
The line of code throwing the error is:
NewApp.textBox1.Text = ap.ResourceIndex.ToString();
How do i handle the null value on the above?

2 answers
Ah, after some playing around i noticed it was the entry in my DB. Ooops.
answered one month ago by:
549
I can thing about those options how you can do it too
ap.ResourceIndex.ToString()==null || ap.ResourceIndex.ToString()==""
or
ap.ResoureceIdex.ToString().Lenght==0
answered one month ago by:
470
549
Thanks, I'll keep that in mind.