web stats analysis

Archive for October, 2013

String was not recognized as a valid DateTime.

String was not recognized as a valid DateTime in asp.net.

String was not recognized as a valid DateTime in c#.

Using DateTime.ParseExact.

string strDate ="10/12/2012";

DateTime date = DateTime.ParseExact(strDate, "dd/MM/yyyy", null);

How to remove extra margin-bottom from floted image?

Remove white space below image

How to remove image padding?

Type following css:

img {

display: block;

}

Cannot access a disposed object?

Following Solution:

The problem is when you close form that it can not be used anymore you have to reopened.The code you posted tries to stop closing and only hides your window.If you want to doing this then you must set cancel-property true.

Private void Max_FormClosing(object sender, FormClosingEventArgs e)  

{

this.Hide();

this.Parent = null;

Cancel=true;

}