Hi Marc,
it's works. You are really good! Thanks.
Sincerelly, I do not understand where is difference, but it's works.
Thanks.
Mike
On Mon, 12 Nov 2007 07:27:04 -0800, Marc Gravell
<(E-Mail Removed)> wrote:
>Well, the code (at the bottom) works fine; I would suggest breaking
>the expression and checking the values, i.e.
>DateTime tmp = Convert.ToDateTime(dt.Rows[0][6]);
>// breakpoint/output! what is tmp?
>this.dtpOfferDate.Value = tmp;
>
>And you might want to double-check that dtpOfferDate is the correct
>control and isn't already data-bound, and doesn't have any conflicting
>min/max values.
>
>Marc
>
>
>
>using System;
>using System.Windows.Forms;
>
>static class Program
>{
> [STAThread]
> static void Main()
> {
> Application.EnableVisualStyles();
> using (Form f = new Form())
> using (DateTimePicker dtp = new DateTimePicker())
> {
> dtp.Value = new DateTime(1960, 11, 13);
> f.Controls.Add(dtp);
> Application.Run(f);
> }
>
> }
>}
|