TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Israel
701
1.3k
217.2k
How to convert in Decimal number please
Jul 1 2015 1:15 PM
Hi!
I need same help. I navigate in internet I didnt find.
How can I convert all these textbox to decimal. Even the last result should display a decimal number.
Thanxin advance!
private void lblTotal1_TextChanged(object sender, EventArgs e)
{
decimal d1, d2, d3, d4, total;
decimal.TryParse(lblTotal1.Text, out d1);
decimal.TryParse(lblTotal2.Text, out d2);
decimal.TryParse(lblTotal3.Text, out d3);
decimal.TryParse(lblTotal4.Text, out d4);
total = d1 + d2 + d3 + d4;
lblTotal.Text = total.ToString();
}
Reply
Answers (
7
)
How to export logo image and data to pdf in Formview
C# Regular expression for start and end text