Event subscription and form reference - Suffering fundamental misunderstanding

S

Steve Howard

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
 
S

Simon Hart

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.
 
S

Steve Howard

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top