Hi!<br> I've been using Visual C++ for 3/4 days. I've bought a book "SAMS Teach Yourself Visual C++ 6 in 21 Days." I'm now on the Day 2 of the book. But I've a problem while displaying the message to the user. If you have the book that will be great if not then I'll try to give details of the program as much as I could. I wrote a program as told in the book. The program is suppose to show the user what he had typed in the "Static Text" field; where the default message is "Place you message here". Now at this time if I clicked "Show Message" button, the default message is shown to the user but if I changed it to "This is a test" it still shows the default message "Place you message here". Here is what I've written in "Show Message" button codes;<br> <br> Void CDay2Dlg::OnShwmsg()<br> {<br> // TODO: Add your control notification.......<br> <br> // Update the message variable with what the user entered<br> UpdateData(TRUE);<br> <br> // Display the message for the user<br> MessageBox(m_strMessage);<br> }<br> <br> What is wrong in the program? Why doesn't it shows what the user had typed in the "Static Text" field?<br> <br> Now, there are other buttons too; "Default Message" and "Clear Message" buttons. The book doesn't contain any information about "Default Message" button. So does this means we don't have to write any codes for "Default Message" button? The "Clear Message" button works perfectly. If I clicked on "Clear Message" button the default message is deleted.<br> <br>I must be doing something wrong here. Please help me.<br> <br>Thanks in advance!<br><br>Regards, <br>Monalisa