O
OutdoorGuy
Greetings,
I have a "newbie" question pertaining to formatting. I am experimenting
with the Month Calendar control on a Windows form and simply want to
format (in red) the dates returned (e.g., "e.Start.ToLongDateString()").
I see no "format" command available (as you would find in VB), and
wasn't sure of how to go about this. Any ideas?
private void monthCalendar1_DateChanged(object sender,
System.Windows.Forms.DateRangeEventArgs e)
{
textBox1.Text = "You selected: " +
e.Start.ToLongDateString() + " to " +
e.End.ToLongDateString();
}
Thanks in advance!
I have a "newbie" question pertaining to formatting. I am experimenting
with the Month Calendar control on a Windows form and simply want to
format (in red) the dates returned (e.g., "e.Start.ToLongDateString()").
I see no "format" command available (as you would find in VB), and
wasn't sure of how to go about this. Any ideas?
private void monthCalendar1_DateChanged(object sender,
System.Windows.Forms.DateRangeEventArgs e)
{
textBox1.Text = "You selected: " +
e.Start.ToLongDateString() + " to " +
e.End.ToLongDateString();
}
Thanks in advance!