468,253 Members | 1,314 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,253 developers. It's quick & easy.

changing properties of a form at runtime

VC++Express;
I have a form with one button. This is my code for the button1 click
event.

BackColor=Color::Red; // Red is in the scope Color ?
changes
color of Form1
button1->BackColor=Color::White; //changes color of button1
MessageBox::Show("Hello"); //Show is in the scope MessageBox???
button1->Text="BUTTON!"; //straightforward. Same as
(*button1).Text="BUTTON!";
button1->Font=("Arial"); //WRONG
It took me a while to figure some of these out by cribbing from
existing code on the web.
How would I more easily find out how to , for example, change the
font of the button text, or any feature of any control?

thanks
Tony

Nov 1 '07 #1
0 705

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Stefan Finzel | last post: by
1 post views Thread by Justin Carter | last post: by
1 post views Thread by Nick via .NET 247 | last post: by
5 posts views Thread by Kimmo Laine | last post: by
reply views Thread by jwallis | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.