Click here to Skip to main content
15,887,430 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sorted collection Pin
riced19-May-10 3:59
riced19-May-10 3:59 
QuestionFlow layout grid control Pin
PorkyKat19-May-10 0:19
PorkyKat19-May-10 0:19 
AnswerRe: Flow layout grid control Pin
#realJSOP19-May-10 1:27
mve#realJSOP19-May-10 1:27 
GeneralRe: Flow layout grid control Pin
PorkyKat20-May-10 22:21
PorkyKat20-May-10 22:21 
Questionopen a window by clicking the button of another window. Pin
calminterlude18-May-10 23:26
calminterlude18-May-10 23:26 
AnswerRe: open a window by clicking the button of another window. Pin
Abhinav S18-May-10 23:33
Abhinav S18-May-10 23:33 
GeneralRe: open a window by clicking the button of another window. Pin
jun villena19-May-10 2:57
jun villena19-May-10 2:57 
QuestionDate Format Problem Pin
Dotnetkanna18-May-10 22:23
Dotnetkanna18-May-10 22:23 
Hi,
I finished developing the .net windows application.problem is in date format.the application developed with the date format of "MM/dd/yyyy" with this appication working fine.but now i want to change the dateformat to "dd/MM/yyyy" by setting this format im getting the folling error "String was not regcognized as valid date format". i have to change the format in one place so that it gets effect in all over the application.

i have tried withe the below code.but its not working.

CultureInfo culture = (CultureInfo)CultureInfo.CurrentCulture.Clone();
culture.DateTimeFormat.ShortDatePattern = "dd/MM/yyyy";
culture.DateTimeFormat.LongTimePattern = "";
System.Threading.Thread.CurrentThread.CurrentCulture = culture;

Regards
Kanna
AnswerRe: Date Format Problem Pin
Christo66718-May-10 22:59
Christo66718-May-10 22:59 
GeneralRe: Date Format Problem Pin
Dotnetkanna18-May-10 23:03
Dotnetkanna18-May-10 23:03 
GeneralRe: Date Format Problem Pin
Garth J Lancaster18-May-10 23:28
professionalGarth J Lancaster18-May-10 23:28 
GeneralRe: Date Format Problem Pin
Christo66719-May-10 0:01
Christo66719-May-10 0:01 
GeneralRe: Date Format Problem Pin
Dotnetkanna19-May-10 0:42
Dotnetkanna19-May-10 0:42 
GeneralRe: Date Format Problem Pin
Christo66719-May-10 5:41
Christo66719-May-10 5:41 
AnswerRe: Date Format Problem Pin
Luc Pattyn19-May-10 1:57
sitebuilderLuc Pattyn19-May-10 1:57 
GeneralRe: Date Format Problem Pin
Dotnetkanna19-May-10 2:03
Dotnetkanna19-May-10 2:03 
Questionwhy VS2010 Solution created sdf file? Pin
Gopal_Kanchana18-May-10 20:32
Gopal_Kanchana18-May-10 20:32 
AnswerRe: why VS2010 Solution created sdf file? Pin
Abhinav S18-May-10 21:05
Abhinav S18-May-10 21:05 
AnswerRe: why VS2010 Solution created sdf file? Pin
DaveyM6918-May-10 22:21
professionalDaveyM6918-May-10 22:21 
AnswerRe: why VS2010 Solution created sdf file? Pin
Richard MacCutchan18-May-10 22:33
mveRichard MacCutchan18-May-10 22:33 
AnswerRe: why VS2010 Solution created sdf file? Pin
Richard MacCutchan19-May-10 4:30
mveRichard MacCutchan19-May-10 4:30 
Questioncomparison between two diffrent array Pin
itfaiza18-May-10 19:19
itfaiza18-May-10 19:19 
AnswerRe: comparison between two diffrent array Pin
neal12318-May-10 19:35
neal12318-May-10 19:35 
QuestionHow to combine byte array with sql command Pin
amit_8318-May-10 18:37
professionalamit_8318-May-10 18:37 
AnswerRe: How to combine byte array with sql command Pin
Abhinav S18-May-10 18:51
Abhinav S18-May-10 18:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.