|
|
|
start date: Wed, 22 Aug 2007 14:29:48 +0530,
posted on: microsoft.public.dotnet.academic
back
| Thread Index |
|
1
Sandeep Singh
|
|
2
Eric Moreau
|
|
3
PvdG42
|
|
4
Tim Van Wassenhove am
|
How to Show only year in DayTimePicker in C#
Hi Everyone,
How to show on UI only year using VS DayTimePicker.
Looking forward for your response.
Thanks
Sandy
Date:Wed, 22 Aug 2007 14:29:48 +0530
Author:
|
Re: How to Show only year in DayTimePicker in C#
Can't you use a combo box?
--
HTH
ric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc. (http://www.emoreau.com)
Membre du rseau .NET Expertise www.dotnet-expertise.com
"Sandeep Singh" wrote in message
news:%2361POnJ5HHA.4436@TK2MSFTNGP03.phx.gbl...
> Hi Everyone,
>
> How to show on UI only year using VS DayTimePicker.
>
> Looking forward for your response.
>
> Thanks
> Sandy
>
Date:Wed, 22 Aug 2007 05:52:48 -0400
Author:
|
Re: How to Show only year in DayTimePicker in C#
"Sandeep Singh" wrote in message
news:%2361POnJ5HHA.4436@TK2MSFTNGP03.phx.gbl...
> Hi Everyone,
>
> How to show on UI only year using VS DayTimePicker.
>
> Looking forward for your response.
>
> Thanks
> Sandy
>
Looking here:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.datetimepicker_members.aspx
it appears that is not an option. Consider Eric's suggestion to avoid
unnecessary complexity.
Date:Wed, 22 Aug 2007 06:31:04 -0500
Author:
|
Re: How to Show only year in DayTimePicker in C#
On 2007-08-22, Sandeep Singh wrote:
> How to show on UI only year using VS DayTimePicker.
this.dateTimePicker1.CustomFormat = "yyyy";
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
You probably want to set the ShowUpDown to true too.
Anyway, a NumericUpDown control would do the same.
--
Kind regards,
Tim Van Wassenhove <url:http://www.timvw.be/>
Date:Wed, 22 Aug 2007 08:43:02 -0700
Author:
|
|
|