I am struggling with how to make an Item selected from a ComboBox change the color of a square on the form. If I enter code in the OnClick event of the ComboBox, then as soon as I click the box the square changes color. But there are also Circle, Ellipse and rectangle in the drop down list of the ComboBox and clicking any one of them also changes the square red. I only want it to change if the Square is selected from the ComboBox. I am using Boreland C++ but with the extensions for Windows programming, rather like visual C++. You drop items onto a form and then get them to do things. Can anyone help with this, I've been stuck on it for ages.
jenco 0 Newbie Poster
Killer_Typo 82 Master Poster
jenco 0 Newbie Poster
jenco 0 Newbie Poster
Killer_Typo 82 Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.