datepicker

does anyone know if you can return a value of datepicker ? my idea was this , I have a datepicker and depending moved the day in question , had a lstbox appeared where data corresponding to the selected date , I have data stored in a txt, if anyone knows how to help let me know !!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 private: System::Void dateTimePicker1_ValueChanged(System::Object^  sender, System::EventArgs^  e) {


			 
	lstValor->Items->Clear();
	Lista<ItemVenda> *LIV = GTudo->getGesVendas()->GetListaVendas();
	string s = CoisasUteis::ConverterStringTostring(dateTimePicker1->Value.ToString());
		int cp = LIV->GetNel();
	        for (int i = 0; i < cp; i++)
				{
					ItemVenda *It = (*LIV)[i];
										                      if (It->GetData() == s)
lstValor->Items->Add(gcnew String(It->Mostrar2().c_str()));

else lstValor->Items->Add(gcnew String(It->Mostrar2().c_str()));
				}
			 }
closed account (2UD8vCM9)
You should probably post this in the windows section.
Topic archived. No new replies allowed.