I realize this might be spoon feeding but I've already tried many other ways to do this but to no avail. I've already researched a lot including this one which I think might be the right way "variable/property changed event in vb.net" but I cant get it to work the way I want it . Im new to coding and I'm trying to add an on change event on my variable so here's my sample.
Public Class FormMode
Public Property ViewMode As Boolean
Public Property EditMode As Boolean
Public Property NewMode As Boolean
End Class
So basically I have forms and each of them has their own FormMode. The form modes can only be true 1 at a time i. e.
ViewMode = True
EditMode = False
NewMode = False
Or
ViewMode = False
EditMode = True
NewMode = False
Or
ViewMode = False
EditMode = False
NewMode = True
The User can and will change the mode of the form. What I want is if they change ViewMode = True the EditMode and NewMode must be automatically be set to false. Same case to the other two. Please note that they will change to value from another form. Also I want to be able to look at if the form is in what form (ViewMode/EditMode/NewMode). Am I doing this the right way or should I try a different approach? Please bear with my noobish and redundant question as I already tried my best to dothis but unfortunately failed. Thank a lot!