hi everyone.
currently im doing a page for displaying some value.
i have a combo box and a label. the combo box have a few choices and whenever user select them. i wish to display some value in the label. i had tried some way n stil unable to solve it.
the code below is for my combo box. jus wondering if anyone could help mi with it? thanks alot. =)
currently im doing a page for displaying some value.
i have a combo box and a label. the combo box have a few choices and whenever user select them. i wish to display some value in the label. i had tried some way n stil unable to solve it.
the code below is for my combo box. jus wondering if anyone could help mi with it? thanks alot. =)
VB.NET:
[font='Courier New'] [color=blue]Private[/color] [color=blue]Sub[/color] ComboBox1_MouseUp([color=blue]ByVal[/color] sender [color=blue]As[/color] [color=blue]Object[/color], [color=blue]ByVal[/color] e [color=blue]As[/color] System.Windows.Forms.MouseEventArgs) [color=blue]Handles[/color] ComboBox1.MouseUp[/font]
[font='Courier New'] [color=blue]If[/color] ComboBox1.Text = "Mon" [color=blue]Or[/color] "Tue" [color=blue]Or[/color] "Wed" [color=blue]Or[/color] "Thur" [color=blue]Then[/color][/font]
[font='Courier New'] price.Text = "6.5"[/font]
[font='Courier New'] [color=blue]Else[/color][/font]
[font='Courier New'] [color=green]'If ComboBox1.Text = "Fri" Or "Sat" Or "Sun" Then[/color][/font]
[font='Courier New'] price.Text = "8"[/font]
[font='Courier New'] [color=blue]End[/color] [color=blue]If[/color][/font]
[font='Courier New'] [color=blue]End[/color] [color=blue]Sub[/color][/font]