Click here to Skip to main content
15,896,439 members
Home / Discussions / C#
   

C#

 
JokeRe: Displaying Graphics in Windows Form Pin
DaveyM6915-Dec-08 10:20
professionalDaveyM6915-Dec-08 10:20 
GeneralRe: Displaying Graphics in Windows Form Pin
Dave Kreskowiak15-Dec-08 10:49
mveDave Kreskowiak15-Dec-08 10:49 
AnswerRe: Displaying Graphics in Windows Form [modified] Pin
Think-A-Tron15-Dec-08 23:31
Think-A-Tron15-Dec-08 23:31 
AnswerRe: Displaying Graphics in Windows Form Pin
User 665815-Dec-08 9:45
User 665815-Dec-08 9:45 
Questiongetting a file type's icon location (SHGetFileInfo??) Pin
mirko8615-Dec-08 8:30
mirko8615-Dec-08 8:30 
AnswerRe: getting a file type's icon location (SHGetFileInfo??) Pin
Giorgi Dalakishvili15-Dec-08 8:45
mentorGiorgi Dalakishvili15-Dec-08 8:45 
GeneralRe: getting a file type's icon location (SHGetFileInfo??) Pin
mirko8615-Dec-08 8:59
mirko8615-Dec-08 8:59 
QuestionDateTime Parse. Pin
postonoh15-Dec-08 6:21
postonoh15-Dec-08 6:21 
Unable to cast object of type 'System.DateTime' to type 'System.String'.

private void StudentsDataGridView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
// Although we could have the SQL statement return a formatted date,
// this is really a User Interface issue and should be handled here.
//
// Display only Date part of datetime
if ((this.StudentsDataGridView.Columns[e.ColumnIndex].Name == this.TeachersDataSet.Students.BirthDateColumn.ColumnName))
{
if (!(e.Value == DBNull.Value))
{
e.Value = DateTime.Parse((string)e.Value).ToLongDateString(); e.FormattingApplied = true;
}
}


}

Learning to Code

AnswerRe: DateTime Parse. Pin
Wendelius15-Dec-08 6:39
mentorWendelius15-Dec-08 6:39 
GeneralRe: DateTime Parse. [modified] Pin
postonoh15-Dec-08 6:47
postonoh15-Dec-08 6:47 
GeneralRe: DateTime Parse. Pin
Wendelius15-Dec-08 6:52
mentorWendelius15-Dec-08 6:52 
QuestionSleep thread but not current Pin
Xmen Real 15-Dec-08 6:00
professional Xmen Real 15-Dec-08 6:00 
AnswerRe: Sleep thread but not current Pin
User 665815-Dec-08 6:38
User 665815-Dec-08 6:38 
GeneralRe: Sleep thread but not current Pin
Xmen Real 15-Dec-08 6:43
professional Xmen Real 15-Dec-08 6:43 
GeneralRe: Sleep thread but not current Pin
User 665815-Dec-08 6:48
User 665815-Dec-08 6:48 
GeneralRe: Sleep thread but not current Pin
Xmen Real 15-Dec-08 6:50
professional Xmen Real 15-Dec-08 6:50 
GeneralRe: Sleep thread but not current Pin
User 665815-Dec-08 6:52
User 665815-Dec-08 6:52 
GeneralRe: Sleep thread but not current Pin
Luc Pattyn15-Dec-08 6:45
sitebuilderLuc Pattyn15-Dec-08 6:45 
GeneralRe: Sleep thread but not current Pin
Xmen Real 15-Dec-08 6:48
professional Xmen Real 15-Dec-08 6:48 
GeneralRe: Sleep thread but not current Pin
User 665815-Dec-08 6:51
User 665815-Dec-08 6:51 
GeneralRe: Sleep thread but not current Pin
Xmen Real 15-Dec-08 6:56
professional Xmen Real 15-Dec-08 6:56 
AnswerRe: Sleep thread but not current Pin
emiaj15-Dec-08 10:32
emiaj15-Dec-08 10:32 
QuestionOperator Precedence Pin
hotthoughtguy15-Dec-08 5:47
hotthoughtguy15-Dec-08 5:47 
AnswerRe: Operator Precedence Pin
Wendelius15-Dec-08 5:52
mentorWendelius15-Dec-08 5:52 
AnswerRe: Operator Precedence Pin
#realJSOP15-Dec-08 6:15
professional#realJSOP15-Dec-08 6:15 

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.