Hey all,
I have a class which contains a private method. The private method must have access to the main form. For example, I could do this:
But ActiveForm in my opinion is very bad programming to use in this situation. Sometimes the code fails at runtime and it just isn't a reliable thing to do in my opinion.Code:frmSnake.ActiveForm.PropertyName
So I don't want to use frmSnake.ActiveForm and the method is private so I cannot really pass any Form variables directly to it..
Any ideas on this one? Here's some pics to help you envision my problem:
![]()




Reply With Quote