Click here to Skip to main content
15,923,087 members
Home / Discussions / C#
   

C#

 
GeneralRe: NumericUpDown Pin
sujithkumarsl9-Nov-06 18:40
sujithkumarsl9-Nov-06 18:40 
GeneralRe: NumericUpDown [modified] Pin
Ashish Derhgawen9-Nov-06 22:12
Ashish Derhgawen9-Nov-06 22:12 
GeneralRe: NumericUpDown Pin
sujithkumarsl9-Nov-06 22:51
sujithkumarsl9-Nov-06 22:51 
GeneralRe: NumericUpDown Pin
sujithkumarsl10-Nov-06 1:27
sujithkumarsl10-Nov-06 1:27 
QuestionRegarding 70-315 Pin
Mirunab9-Nov-06 1:56
Mirunab9-Nov-06 1:56 
AnswerRe: Regarding 70-315 Pin
Colin Angus Mackay9-Nov-06 3:27
Colin Angus Mackay9-Nov-06 3:27 
GeneralRe: Regarding 70-315 Pin
Mirunab10-Nov-06 2:46
Mirunab10-Nov-06 2:46 
GeneralRe: Regarding 70-315 Pin
Colin Angus Mackay10-Nov-06 8:43
Colin Angus Mackay10-Nov-06 8:43 
QuestionHow to check an internet connection Pin
CodeItWell9-Nov-06 1:34
CodeItWell9-Nov-06 1:34 
AnswerRe: How to check an internet connection Pin
mertkan659-Nov-06 2:40
mertkan659-Nov-06 2:40 
QuestionTreeview problem [modified] Pin
Suhas Bothe9-Nov-06 1:33
Suhas Bothe9-Nov-06 1:33 
AnswerRe: Treeview problem Pin
Robert Rohde9-Nov-06 2:05
Robert Rohde9-Nov-06 2:05 
GeneralRe: Treeview problem Pin
Suhas Bothe9-Nov-06 2:24
Suhas Bothe9-Nov-06 2:24 
GeneralRe: Treeview problem Pin
Robert Rohde9-Nov-06 3:00
Robert Rohde9-Nov-06 3:00 
GeneralRe: Treeview problem Pin
Suhas Bothe9-Nov-06 2:28
Suhas Bothe9-Nov-06 2:28 
GeneralRe: Treeview problem Pin
vinSharp9-Nov-06 22:42
vinSharp9-Nov-06 22:42 
QuestionMulti Monitor Application Pin
blackpenny159-Nov-06 1:24
blackpenny159-Nov-06 1:24 
AnswerRe: Multi Monitor Application Pin
mav.northwind10-Nov-06 20:44
mav.northwind10-Nov-06 20:44 
QuestionIs there a setting in visual studio for the Convert.ToDateTime? Pin
Support1239-Nov-06 0:46
Support1239-Nov-06 0:46 
AnswerRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
rah_sin9-Nov-06 0:54
professionalrah_sin9-Nov-06 0:54 
GeneralRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Support1239-Nov-06 1:03
Support1239-Nov-06 1:03 
GeneralRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
rah_sin9-Nov-06 1:33
professionalrah_sin9-Nov-06 1:33 
AnswerRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Colin Angus Mackay9-Nov-06 1:00
Colin Angus Mackay9-Nov-06 1:00 
GeneralRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Support1239-Nov-06 1:09
Support1239-Nov-06 1:09 
AnswerRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Hunuman9-Nov-06 1:29
Hunuman9-Nov-06 1:29 
I suggest that instead of using Convert, use DateTime.Parse.

See Example from MSDN below:

using System;
using System.Globalization;

namespace Parse
{
class Class1
{
public static void Main(string[] args)
{
// Assume the current culture is en-US.
// The date is Feburary 16, 1992, 12 hours, 15 minutes and 12 seconds.

string myDateTimeValue = "2/16/1992 12:15:12";
DateTime myDateTime = DateTime.Parse(myDateTimeValue);
Console.WriteLine("1) myDateTime = {0}", myDateTime);

// Reverse month and day to conform to a different culture.
// The date is Feburary 16, 1992, 12 hours, 15 minutes and 12 seconds.

IFormatProvider culture = new CultureInfo("fr-FR", true);
string myDateTimeFrenchValue = " 16/02/1992 12:15:12";
DateTime myDateTimeFrench =
DateTime.Parse(myDateTimeFrenchValue,
culture,
DateTimeStyles.NoCurrentDateDefault);
Console.WriteLine("2) myDateTimeFrench = {0}", myDateTimeFrench);

// The date is Feburary 16, 1992, 12 hours, 15 minutes and 12 seconds.

string[] expectedFormats = {"G", "g", "f" ,"F"};
myDateTimeFrench =
DateTime.ParseExact(myDateTimeFrenchValue,
expectedFormats,
culture,
DateTimeStyles.AllowWhiteSpaces);
Console.WriteLine("3) myDateTimeFrench = {0}", myDateTimeFrench);
}
}
}
/*
This example yields the following results:

1) myDateTime = 2/16/1992 12:15:12 PM
2) myDateTimeFrench = 2/16/1992 12:15:12 PM
3) myDateTimeFrench = 2/16/1992 12:15:12 PM
*/



if (ToErr == Human.Nature)
{
Forgive = Divine;
}

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.