Qu'est-ce que je fais mal est ici ??
string tmp = @"
if (UseImageFiles) {
vCalHeader += ""<td><img onmousedown='' src= '{0}cal_fastreverse.gif' width='13px' height='9' onmouseover='changeBorder(this, 0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white'></td>\n""; //Year scroller (decrease 1 year)
calHeight += 22;
}";
string x = "xter";
tmp = string.Format(tmp, x);
J'ai reçu une "La chaîne d'entrée n'était pas au format correct" pendant que j'essayais de changer {0}. Je fais le code en c # et winforms
Exception de format non gérée
La chaîne d'entrée n'était pas au format correct
Dépannez les astuces que je reçois:
Make sure your method arguments are in right format.
when converting a string to datetime, parse the string to take out the date before putting each variable into the DateTime object