cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
get value from comboBox item
get value from comboBox item
Apr 19, 2013 at 1:20pm UTC
zyhsu1
(6)
Dear Sir:
I am new to window c++ form application, I want to make
a comboBox for user to add string items, then get item
value to a variable, so I can do something in main function like printf(variable) etc...
I have two file; w1.cpp and Form1.h
I do in comboBox in From1.h like this:
String^ comboval=comboBox1->Text;
MessageBox::Show(comboval);
I did see the value of comboval, then I want to set a variable in w1.cpp
char outvalue[MAX_PATH];
Could you tell me how to assign the value from comboval to outvalue?
thanks a lot!
Topic archived. No new replies allowed.