Click here to Skip to main content
15,899,314 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to create a "Double Click event" Pin
Stefan Troschuetz11-Jan-05 21:20
Stefan Troschuetz11-Jan-05 21:20 
GeneralRe: How to create a "Double Click event" Pin
J4amieC11-Jan-05 22:30
J4amieC11-Jan-05 22:30 
GeneralRe: How to create a "Double Click event" Pin
Stefan Troschuetz11-Jan-05 22:43
Stefan Troschuetz11-Jan-05 22:43 
GeneralRe: How to create a "Double Click event" Pin
lee meng12-Jan-05 4:06
lee meng12-Jan-05 4:06 
GeneralRe: How to create a "Double Click event" Pin
Stefan Troschuetz12-Jan-05 4:15
Stefan Troschuetz12-Jan-05 4:15 
AnswerRe: Thank You Pin
lee meng12-Jan-05 5:46
lee meng12-Jan-05 5:46 
GeneralProblem with parameters (Registry) Pin
FireDK11-Jan-05 20:43
FireDK11-Jan-05 20:43 
GeneralDatetime regional format Pin
sevan11-Jan-05 19:09
sevan11-Jan-05 19:09 
when i write the date in win.txt

it was like this
Lsbox_Date.Items.Add(DTP_Today.Value.ToShortDateString());
so if the regional setting was set to MM/dd/yyyy it will write the date the same as regional setting

so i change it to this which always gonna be dd/mm/yyyy
Lsbox_Date.Items.Add(DTP_Today.Value.Day.ToString()+
"/"+DTP_Today.Value.Month.ToString()+"/"+DTP_Today.Value.Year.ToString());

when i read the win.txt


this code is reading the date from win.txt

StreamReader Read_key = File.OpenText(@windir+"\\Win.txt");
string key_Trim;
string key;
key_Trim = Read_key.ReadLine();
key = key_Trim.TrimEnd();
Read_key.Close();

Convert the key to datetime
DTP_Key.Value = Convert.ToDateTime(key.ToString());

so if the regional setting is set to dd/mm/yyyy i have no Problem coz the format is the same

but if the regional setting is set to mm/dd/yyyy then i get an error converting the key string.

i need help pls ASAP
GeneralRe: Datetime regional format Pin
Stefan Troschuetz11-Jan-05 21:05
Stefan Troschuetz11-Jan-05 21:05 
GeneralTwo Assemblies in GAC Pin
IamADotNetGuy11-Jan-05 18:58
IamADotNetGuy11-Jan-05 18:58 
GeneralRe: Two Assemblies in GAC Pin
Jesse Squire12-Jan-05 7:01
Jesse Squire12-Jan-05 7:01 
GeneralRe: Two Assemblies in GAC Pin
IamADotNetGuy12-Jan-05 18:14
IamADotNetGuy12-Jan-05 18:14 
GeneralRe: Two Assemblies in GAC Pin
Jesse Squire13-Jan-05 2:26
Jesse Squire13-Jan-05 2:26 
GeneralRef Key word Pin
IamADotNetGuy11-Jan-05 18:55
IamADotNetGuy11-Jan-05 18:55 
GeneralRe: Ref Key word Pin
Corinna John11-Jan-05 21:02
Corinna John11-Jan-05 21:02 
GeneralRe: Ref Key word Pin
leppie12-Jan-05 6:22
leppie12-Jan-05 6:22 
GeneralRe: Ref Key word Pin
Corinna John12-Jan-05 7:19
Corinna John12-Jan-05 7:19 
GeneralHangs while opening word in C# Pin
itssuk11-Jan-05 18:37
itssuk11-Jan-05 18:37 
GeneralRe: Hangs while opening word in C# Pin
Dave Kreskowiak12-Jan-05 4:29
mveDave Kreskowiak12-Jan-05 4:29 
QuestionWhen will be the missing APIs be available with .NET FCL? Pin
Salil Khedkar11-Jan-05 18:25
Salil Khedkar11-Jan-05 18:25 
GeneralEBCDIC to ASCII Pin
Talktorajeev11-Jan-05 18:13
Talktorajeev11-Jan-05 18:13 
GeneralDisplaying an icon in a PictureBox control Pin
Member 131681311-Jan-05 17:53
Member 131681311-Jan-05 17:53 
GeneralInsert marks Pin
RockRock11-Jan-05 17:30
RockRock11-Jan-05 17:30 
QuestionCan someone suggest?... Pin
Synthia211-Jan-05 17:02
Synthia211-Jan-05 17:02 
AnswerRe: Can someone suggest?... Pin
itssuk11-Jan-05 18:40
itssuk11-Jan-05 18:40 

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.