MMRavari
جمعه 07 آبان 1400, 23:57 عصر
با سلام
برای نمایش اطلاعات بصورت مالی اومدم لیبلی رو در UserControl قرار دادم
میخوا نمایش اعداد به صورت سه رقم سه رقم باشه
برای اینکار از تابع زیر استفاده کردم
public string MyValue
{
get
{
return lblValue.Content.ToString();
}
set
{
lblValue.Content = (value.ToString("#,#"));
}
}
اما با خطای زیر روبرو میشم
Severity Code Description Project File Line Suppression State
Error CS1503 Argument 1: cannot convert from 'string' to 'System.IFormatProvider' Accounting E:\Accounting\Accounting\UserControls\ShowText.xam l.cs 57 Active
برای نمایش اطلاعات بصورت مالی اومدم لیبلی رو در UserControl قرار دادم
میخوا نمایش اعداد به صورت سه رقم سه رقم باشه
برای اینکار از تابع زیر استفاده کردم
public string MyValue
{
get
{
return lblValue.Content.ToString();
}
set
{
lblValue.Content = (value.ToString("#,#"));
}
}
اما با خطای زیر روبرو میشم
Severity Code Description Project File Line Suppression State
Error CS1503 Argument 1: cannot convert from 'string' to 'System.IFormatProvider' Accounting E:\Accounting\Accounting\UserControls\ShowText.xam l.cs 57 Active