Hi...I need to write dynamic menu...
which will take all items from ini/cfg gile
cfg file will look like that:
TEMPLATE_NAME=LEX UPDATE
PL=Czesc to jest update.
ENG=Hi this is uptade.
TEMPLATE_NAME=WINDOWS ERROR
PL=Blad
ENG=Error!
.
etc
.
.
Items will be read to dropdown menu called TEMPLATES..
I know how to do that.
I will modify my last code
StreamReader^ plik= gcnew StreamReader("CONFIG\\systems.ini",System::Text::Encoding::Default);
while (linia=plik->ReadLine())
{
this->systemBOX->Items->Add(linia);
}
I will add if linia contains "template=" then replace "template=" and add item..
but...
I dunno how to make it work.
for example templates in cfg may vary.(from 1 to 20 items)
when I click on item at dropdown menu, it should copy text from PL= & ENG= to textbox fields....
Its very easy to do when you have constant list defined in program...I dunno how to do it if its dynamic..an all parameters are taken from the file...
Please help.and thx in advance.