Datetimepicker

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have a datetime picker, an add-button and a listview
In the dattimepicker I choose a date and via de add-button I will add that date to my listview

How can I do this in the click-event of the add-button
Just how can I add the choosen date in a listbox

Tk
Jac
 
Hi Jac,
Hi,

I have a datetime picker, an add-button and a listview.
In the dattimepicker I choose a date and via de add-button
I will add that date to my listview.

How can I do this in the click-event of the add-button;
Just how can I add the choosen date in a listbox.

e.g.
// dateTimePicker1
// button1
// listView1

// add button1 *Click* event handler
private void button1_Click(object sender
, EventArgs e)
{
listView1.Items.Add(dateTimePicker1.Value.ToString());
}

Regards

Marcin
 
Back
Top