I am trying to get my program to Count how many times a certain messagebox in my program appears while it is running.
I have looked up how to do this and it seems that I will need to use int count but I'm not sure how to code this for Messageboxes as I can only find count code for strings and arrays.