I'm trying to implement some code that uses a Windows Forms that contains a dropdown combobox that is filled with values. These values depict that level of detail i want stuff to be printed to a log (i.e. Critical messages, Error Messages, Debug Messages ec)
I am wondering if there is a way in which to get my C++ class file to READ the value of the COMBOBOX on the windows form?
i.e. comboBox1 = dlCritical.
In the logfile Class:
iDebugLevels = comboBox1.value()? // I know this doesn't actually work but it's just to explain what i'm looking for.
The structure of the file system is as follows:
public ref class Form1 : public System::Windows::Forms::Form
private: WinIO mWinIO;
mWinIO = gcnew WinIO();
mLogFile = new LogFile();
mDebugLevels = comboBox.Value(); //This is where i would like to read in the value of the combo box value from the form.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)