Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21843

[RESOLVED] Changing text data in Combobox problem

$
0
0
In a game I am making I have a Combo box called cboColor which contains two items; "White" and "Black" and the .Text property is set to "White" which is the default color

If the player is going to play the game without an opponent then the player must be "White". Now if player changes "White" to "Black" (which he shouldn't but just in case he does) and then clicks on "Play Game" the code sees that he is the only player and makes the .Text property to "White". I can see where "Black" changes to "White" in the .Text property of the combo box as I single step through the code but as soon as the code exits the Sub (which returns to the system; ie, no other calls are made) the .Text property goes blank.

Viewing all articles
Browse latest Browse all 21843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>