DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   How to use combobox function (http://www.daniweb.com/forums/thread8136.html)

freesoft_2000 Jul 16th, 2004 9:39 am
How to use combobox function
 
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

meabed Jul 17th, 2004 7:18 am
Re: How to use combobox function
 
Check this link .. .:)
http://msdn.microsoft.com/library/de...ss_members.asp


All times are GMT -4. The time now is 12:49 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC