Event subscription and form reference - Suffering fundamental misunderstanding

  • Thread starter Thread starter Steve Howard
  • Start date Start date
Simon,

I can't see anything wrong with your code. Is it not setting the correct
image in the imagelist or are you getting a compile error/runtime error?

Oh no, it works exactly as I want now. I think we sort of moved on to "did I
do it right?" :-)
One thing (not connected to your problem) always used private access
modifier on properties,data etc unless they are required outside of that
object/class.

You mean these two declarations?

--
public SectSplash(int userChoiceFromParent)

public int UserChoice
--

OK I can fix that :-)


Thanks again!

Steve
 
Steve,

Just the property: public int UserChoice and generally and data that
property uses.

So make it : private int UserChoice, that is if you don't need to set it
from outside of that class.

Cheers
Simon.
 
Just the property: public int UserChoice and generally and data that
property uses.

So make it : private int UserChoice, that is if you don't need to set it
from outside of that class.


OK thanks - that makes sense.


Steve
 
Back
Top