Can i so to speak, "lock" an image box at run time so that it cannot be changed? As i need to do this for my poker sim. Its for the Hold function.
Thanks!
Printable View
Can i so to speak, "lock" an image box at run time so that it cannot be changed? As i need to do this for my poker sim. Its for the Hold function.
Thanks!
Why do you want to "lock" an image box? If you don't want it to change don't change it. Lock is for controls that the user can manipulate by themselves. The image control left by itself cannotb be changed by the user. The programmer changes it at design time or runtime through code.
Does this help?
Drewski
Im making a poker simulator, and if your not familiar with poker, the player is dealt 5 cards and then gets the option of discarding some of these cards and are given replacements.
I have got the deal function working fine.
But i want the user to be able to click a check box and when checked, it "locks" that coresponding card. so when they click the deal button, they get their replacement cards the chosen card isnt effected by the 2nd deal. There fore holding the card! Get me? Is there a way?
What you could do is have a flag (variable) for each of the cards in their hand, and set a flag for each card that is being held. (Done when they click a check box.) Then when you deal the new cards, skip over the ones where the variable is set as a held card.
:)