Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Events for dynamic crated combobox

$
0
0
Hello I am using VS 2010. C++/CLR Windows Forms Application

ComboBox^ ActivationFunction = gcnew ComboBox;
				 ActivationFunction->Name="ActivationFunction"+NewLayerAmountValue;
				 ActivationFunction->Size = System::Drawing::Size(80,20);
				 ActivationFunction->Location = System::Drawing::Point(LayerNumber->Location.X + LayerNumber->Size.Width, NeuronsAmount->Location.Y);
				 for each(String^ s in ListActivationFunctions)
				 {
					 ActivationFunction->Items->Add(s);
				 }
				 ActivationFunction->SelectedIndexChanged += gcnew System::EventHandler(ActivationFunctionChanged);
				 this->panel1->Controls->Add(ActivationFunction);
I create some Comboxes. Now I want to create a method that will be applied to all dynamic created comboboxes.
How should I do that? 

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>