需要帮助Combobox [英] Need help with a Combobox
问题描述
我对那里的人有疑问,当用户从列表中选择某个东西时,我需要Combobox更改
标签标题。我怎么用
代码呢。我已经尝试了If Then声明,但它似乎无法工作。
有人请帮忙!
I have a question for people out there, I need the Combobox to change a
label caption when the user picks a certain thing from the list. How do I
code this. I''ve tried an If Then statement, but it doesn''t seem to work.
Somebody please help!
推荐答案
地狱是什么? < ra ********** @ gmail.com>'狂野的想法
于2006年9月7日星期四02:36:19发布时间>
关注水果:
"What the Hell?" <ra**********@gmail.com>''s wild thoughts
were released on Thu, 07 Sep 2006 02:36:19 GMT bearing the
following fruit:
我对那里的人有疑问,当用户选择时我需要Combobox更改
标签标题列表中的某个东西。我该如何编码呢?我已经尝试了If Then语句,但它似乎无法工作。
有人请求帮助!
I have a question for people out there, I need the Combobox to change a
label caption when the user picks a certain thing from the list. How do I
code this. I''ve tried an If Then statement, but it doesn''t seem to work.
Somebody please help!
发布没有的代码无论如何工作。
无论如何,
Private Sub Combo1_Click()
Label1.Caption = Combo1.Text
End Sub
Jan Hyde(VB MVP)
-
口袋里有洞的人整天都感到骄傲。
Post the code that doesn''t work.
Anyway,
Private Sub Combo1_Click()
Label1.Caption = Combo1.Text
End Sub
Jan Hyde (VB MVP)
--
Man with hole in pocket feel cocky all day.
对不起我应该更具体,当用户选择
$时b $ b省份,标签变更为不同的税率。就像当他们选择
" AB"然后标签上写着6%
" Jan Hyde" < St *********** @ REMOVE.ME.uboot.com写信息
新闻:r1 *************** ***************** @ 4ax.com ...
Sorry I should have been more specific, When the User picks from a list of
provinces, the label changes to a different tax rate. Like when they pick
"AB" then the label says "6%"
"Jan Hyde" <St***********@REMOVE.ME.uboot.comwrote in message
news:r1********************************@4ax.com...
地狱是什么? < ra ********** @ gmail.com>'狂野的想法
于2006年9月7日星期四02:36:19发布时间>
关注水果:
"What the Hell?" <ra**********@gmail.com>''s wild thoughts
were released on Thu, 07 Sep 2006 02:36:19 GMT bearing the
following fruit:
>我对那里的人有一个问题,当用户从列表中选择某个东西时,我需要使用Combobox更改
标签标题。我该如何编码呢?我已经尝试了If Then语句,但它似乎无法工作。
有人请求帮助!
> I have a question for people out there, I need the Combobox to change a
label caption when the user picks a certain thing from the list. How do I
code this. I''ve tried an If Then statement, but it doesn''t seem to work.
Somebody please help!
发布没有的代码无论如何工作。
无论如何,
Private Sub Combo1_Click()
Label1.Caption = Combo1.Text
End Sub
Jan Hyde(VB MVP)
-
口袋里有洞的男人整天都感到骄傲。
Post the code that doesn''t work.
Anyway,
Private Sub Combo1_Click()
Label1.Caption = Combo1.Text
End Sub
Jan Hyde (VB MVP)
--
Man with hole in pocket feel cocky all day.
对不起,代码不起作用
Private Sub cboProvince_Click()
如果cboProvince.List =" AB"那么LblTax.Caption =6%
End Sub
" Jan Hyde" < St *********** @ REMOVE.ME.uboot.com写信息
新闻:r1 *************** ***************** @ 4ax.com ...
sorry, the code that doesnt work is
Private Sub cboProvince_Click()
If cboProvince.List = "AB" then LblTax.Caption = "6%"
End Sub
"Jan Hyde" <St***********@REMOVE.ME.uboot.comwrote in message
news:r1********************************@4ax.com...
地狱是什么? < ra ********** @ gmail.com>'狂野的想法
于2006年9月7日星期四02:36:19发布时间>
关注水果:
"What the Hell?" <ra**********@gmail.com>''s wild thoughts
were released on Thu, 07 Sep 2006 02:36:19 GMT bearing the
following fruit:
>我对那里的人有一个问题,当用户从列表中选择某个东西时,我需要使用Combobox更改
标签标题。我该如何编码呢?我已经尝试了If Then语句,但它似乎无法工作。
有人请求帮助!
> I have a question for people out there, I need the Combobox to change a
label caption when the user picks a certain thing from the list. How do I
code this. I''ve tried an If Then statement, but it doesn''t seem to work.
Somebody please help!
发布没有的代码无论如何工作。
无论如何,
Private Sub Combo1_Click()
Label1.Caption = Combo1.Text
End Sub
Jan Hyde(VB MVP)
-
口袋里的男人整天都感到自大。
Post the code that doesn''t work.
Anyway,
Private Sub Combo1_Click()
Label1.Caption = Combo1.Text
End Sub
Jan Hyde (VB MVP)
--
Man with hole in pocket feel cocky all day.
这篇关于需要帮助Combobox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!