hi,

i know i m asking sort of stupid question, but i cant figure out my mistake. in winform c++, i have added two buttons and buttons' properties visible and enable are set to true but at runtime, both are not visible. can someone help me figure out my mistake... thanks a lot in advance.

Is there anything else drawn over top of them? They may be there, just hidden by an errant draw order...

If the buttons are on a Panel container then you need to set the TabStops property so that the Panel is number0 and the buttens each have a higher and unique number. So if the form contains a Panel and two buttons, then the Panel is TabStop 0, and the two buttons are TabStop 1 and 2, respectively.

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.