|
-
Nov 15th, 2001, 12:07 PM
#1
Thread Starter
Member
Image Box Properties!
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!
-
Nov 15th, 2001, 12:56 PM
#2
Addicted Member
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
I see said the blind man as he spat into the wind.
It all comes back to me now!
A.D.T.'s VB
-
Nov 15th, 2001, 01:02 PM
#3
Thread Starter
Member
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?
-
Nov 15th, 2001, 11:53 PM
#4
New Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|