i want display a given number into Rupees Format
Like
Given number is : 156735
my Expected output is 1,56,735.
how to display?
Answer Posted / esarmca65
For win forms .....
private void button1_Click(object sender, EventArgs e)
{
string s = textBox1.Text;
textBox2.Text = string.Format("{0:c}",
Convert.ToInt32(s));
}
Input: 65536
Out Put:$65,536.00
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
How long can loop recorders stay in?
What do you mean by casting a data type?
What is different between Implicit conversion and Explicit conversion in C#?
What is delegates in c#?
What is the difference between a method and a property?
Hi Friends, I am going through Siemens Interview Procedure from last 1+1/2 months. I went through 1 written + 2 Technical + 1 Managerial Round process after which I got call from HR informing that "you are selected and we would like to meet you for HR round". HR round was very nominal compared to MR. HR Round last for hardly 5 mins. They told me that you will get the final result on Friday. Still I have not received any feedback from them. Please help!!!
Can we inherit partial class in c#?
What language do desktop applications use?
What is the difference between method overriding and method overloading?
How do I enforce const correctness in c#?
How can an inner class access the members of outer class?
Can fields inside a class be virtual?
What is regex replace in c#?
What is the differences between datagrid, datalist and repeater in .net?
What is the difference between parse and tryparse in c#?