Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MFC VC++
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 13:18pm
Comments
jibesh at 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 at 14-Jan-13 14:02pm
   
Thankss for your solution..I know the basic stuff..my 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
good
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.
  Permalink  
v2
Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 200
1 George Jonsson 175
2 Kornfeld Eliyahu Peter 169
3 PIEBALDconsult 110
4 Richard MacCutchan 85
0 OriginalGriff 6,080
1 DamithSL 4,648
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,624
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2014
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