I keep getting this warning when I'm doing something that appears very normal to me. I really have no idea how I can get this away, and since you should treat warnings as errors I want this gone. The warning I get is: Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.
It's about this piece of code:
lblHuidigePlanning.Text = dteDatumAanpassing.Today
where lblHuidigePlanning is a label in which I want the date that the user picked to come. dteDatumAanpassing (the date) is a global variable.
I don't get what I'm doing wrong.
If you guys could help me with this I promise I'll stop posting for today
Thanks
It's about this piece of code:
lblHuidigePlanning.Text = dteDatumAanpassing.Today
where lblHuidigePlanning is a label in which I want the date that the user picked to come. dteDatumAanpassing (the date) is a global variable.
I don't get what I'm doing wrong.
If you guys could help me with this I promise I'll stop posting for today
Thanks