943,719 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 8564
  • C++ RSS
Jul 16th, 2004
0

How to use combobox function

Expand Post »
I am trying to write some code using vc++ 6.0 under win 98 but have gotten stuck in one place. I am trying to read the strings of the combobox into the edit box when i click on the command button and the variables that i have declared are as follows:

combobox = m_combo1
editbox = m_edit1

The code in my onbutton function is as follows:

UpdateData(true);
CString a;
a = m_combo1;
a.MakeUpper( );
m_edit1 = a;

The problem is that i am not able to read in any values into the edit box
and whenever i click the button the editbox just remains empty.

Can someone please see what's wrong with my program and show me or
e-mail the entire codings of the right way to do this. My e-mail is
freesoft_2000@yahoo.com

Thank You

Yours Sincerely

Richard West
Similar Threads
Reputation Points: 25
Solved Threads: 10
Practically a Master Poster
freesoft_2000 is offline Offline
623 posts
since Jun 2004
Jul 17th, 2004
0

Re: How to use combobox function

Team Colleague
Reputation Points: 55
Solved Threads: 3
Junior Poster
meabed is offline Offline
139 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Backp/Restore HardDisk Image
Next Thread in C++ Forum Timeline: summations and combinations





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC