I've created a class that inherits the System.Windows.Forms.TabPa
ge class. I'm not sure how to declare an instance of the class. There needs to be an instance for each TabPage created on a specific TabControl. I basically set this new property in the "SelectedIndexChanged()" Event. I'm getting Object Reference error because I'm not sure how to declare the variable.
Public Class tabPageViewed
Private _viewed As Boolean
Property TabViewed() As Boolean
TabViewed = _viewed
Set(value As Boolean)
_viewed = value
What is the difference in the two statements below?
Private tabV() As tabPageViewed
Private tabV As New tabPageViewed()
How should it be declare with regard to the context in which I'm using it. I only set and check this property in the "SelectedIndexChanged()" Event.