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
693
1.3k
219.4k
Why my combobox doesnt make calcul in the appropriate event
Jul 2 2015 11:07 AM
Hi!
I wrote this code and I need to make this operation when I select the first value. But its doesnt make nothing. It works only when I put it this code on a button. I am asking now the question to know if its in a wrong event???
switch (cbxPercentagemFacturacao.SelectedIndex)
{
case 0:
decimal d1, d2, total;
decimal.TryParse(cbxPercentagemFacturacao.Text, out d1);
decimal.TryParse(txtTotal2.Text, out d2);
total = d1 * d2 / 100;
txtValor3.Text = total.ToString("N");
txtTotal3.Text = "";
break;
case 1:
MessageBox.Show("test1");
break;
default:
MessageBox.Show("test2");
break;
}
Reply
Answers (
1
)
C# Regular expression for start and end text
page life cycle asp.net