J
John
Arrggg…Format String Hell…Hello there,
I am attempting to format a decimal value as a % (percentage).
That is; I want .12 to be displayed and edited as 12%
No matter what I try I cant get it to work
I can get it working for display format, but not for the editformat
Below is my code
Me.txtDefaultAdminFeePercentage.Properties.DisplayFormat.FormatType =
FormatType.Numeric
Me.txtDefaultAdminFeePercentage.Properties.DisplayFormat.FormatString =
"{0:0%}"
Me.txtDefaultAdminFeePercentage.Properties.EditFormat.FormatType =
FormatType.Numeric
Me.txtDefaultAdminFeePercentage.Properties.EditFormat.FormatString =
"{0:0%}"
Any ideas would be greatly appreciated
Thank you for taking the time to read my post
John
I am attempting to format a decimal value as a % (percentage).
That is; I want .12 to be displayed and edited as 12%
No matter what I try I cant get it to work
I can get it working for display format, but not for the editformat
Below is my code
Me.txtDefaultAdminFeePercentage.Properties.DisplayFormat.FormatType =
FormatType.Numeric
Me.txtDefaultAdminFeePercentage.Properties.DisplayFormat.FormatString =
"{0:0%}"
Me.txtDefaultAdminFeePercentage.Properties.EditFormat.FormatType =
FormatType.Numeric
Me.txtDefaultAdminFeePercentage.Properties.EditFormat.FormatString =
"{0:0%}"
Any ideas would be greatly appreciated
Thank you for taking the time to read my post
John