J
Jack Wright
Dear All,
I am getting Out of Memory exception sometimes while executing this code...
wot am I doing wrong here....
private int GetStringLength(string StringToMeasure)
{
System.Drawing.Graphics oGraphics = this.CreateGraphics();
Font sGridFont = _MyGrid.Font;
string sDummyString = StringToMeasure;
SizeF stringSize = new SizeF();
stringSize = oGraphics.MeasureString(sDummyString, sGridFont);
return ((int)stringSize.Width + 10);
}
Please help...
TALIA
Many Regards
Jack
I am getting Out of Memory exception sometimes while executing this code...
wot am I doing wrong here....
private int GetStringLength(string StringToMeasure)
{
System.Drawing.Graphics oGraphics = this.CreateGraphics();
Font sGridFont = _MyGrid.Font;
string sDummyString = StringToMeasure;
SizeF stringSize = new SizeF();
stringSize = oGraphics.MeasureString(sDummyString, sGridFont);
return ((int)stringSize.Width + 10);
}
Please help...
TALIA
Many Regards
Jack