Click here to Skip to main content
13,201,763 members (69,875 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am using MFC vc++ dialogbased application.
on my dialog i have supposed 3 comboboxs with 3 strings and 9 editcontrol
such as
c1.... E11 E21 E31
c2 .... E12 E22 E32
c3..... E13 E23 E33

Whenever i have select "a" string from combo box 'c1' it should populate E11 E21 E31 field value as "abc, bcd, edc" respectively same for c2 and c3 but diffrent strings values should populate. I know which string for which editboxs.
How I can do it? Thank you in advance..
Posted 10-Jan-13 12:18pm
jibesh 10-Jan-13 18:39pm
It's not that tough to do that. subscribe for Combo Change event and get the selected item text. any effort made on this so far ?
peoria123 14-Jan-13 14:02pm
Thankss for your solution..I know the basic problem is..for each combobox have 25 strings , 20 combobox on the dialog box..the selction of string is not fixed for all comboboxs i can select string a,b,c..or anything from 25 strings. it should populate corresponding strings into edit boxes. e.g for "a" selection populatin string would be x,y,z for selection "b" strings are z,m,n etc..i have to populate editbox fields depending on selected string how i can do that?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Check this link [^]on how to use ComboBox control in MFC. A step by step tutorial.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Handle the change event on the combo box, and react to it. Pretty basic stuff. Why are you a beginner in MFC, in 2013 ? Do people still use MFC and C++ ? C# is way better.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171020.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100