ComboBox文本返回 [英] ComboBox Text Return

查看:126
本文介绍了ComboBox文本返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手,所以请耐心等待。


我有一套组合框。让我们称它们为ComboBox1和ComboBox2。


ComboBox1项目是从表中提取的。当用户选择某个项目

我想禁用ComboBox2。我可以在Visual Web Developer中使这个工作,

但是在Visual Basic 2005中没有成功。

解决方案

你能不能告诉它你将如何在aspnet中做到这一点,也许是最好的b / b
轨迹在VBNet中向你展示。


您是否知道顺便说一下最活跃的VB新闻组是


microsoft.public.dotnet.languages.vb

Cor


" news.microsoft.com" <再*** @ cox.net> schreef在bericht

新闻:%2 **************** @ TK2MSFTNGP04.phx.gbl ...

我是对此我很感兴趣。

我有一套组合框。让我们称它们为ComboBox1和ComboBox2。

ComboBox1项目是从表中提取的。当用户选择某个
项时我想禁用ComboBox2。我可以在Visual Web开发人员中使用它,但在Visual Basic 2005中没有成功。



我可以做到使用以下语法在Visual Web Developer 2005中工作:

如果DropDownBox1.SelectedItem.Text =" Normal"然后

DropDownBox6.Enabled = False

Else

DropDownBox6.Enabled = True

EndIF


我希望以下内容适用于VB 2005,但到目前为止我已经

不成功使其工作。


如果ComboBox.SelectedItem.Text =" Normal"但是没有Text子对象

for Selected Item。


" Cor Ligthert [MVP]" <无************ @ planet.nl>在消息中写道

新闻:ef ************** @ TK2MSFTNGP04.phx.gbl ...

你能告诉它如何你会在aspnet中做到这一点,也许是在VBNet中向你展示它的最佳方式。

你知道最活跃的VB新闻组的方式是

microsoft.public.dotnet.languages.vb


" news.microsoft.com" <再*** @ cox.net> schreef in bericht
新闻:%2 **************** @ TK2MSFTNGP04.phx.gbl ...

我是新手,所以忍受我。

我有一套组合框。让我们称它们为ComboBox1和ComboBox2。

ComboBox1项目是从表中提取的。当用户选择某个
项时我想禁用ComboBox2。我可以在Visual Web开发人员中使用它,但在Visual Basic 2005中没有成功。



DJ,


在我的想法中,组合框中的当前文本始终是选定的文本。

Combobox1.text = normal
< br $>
我想念什么?


Cor


" DJ" <再*** @ cox.net> schreef in bericht

新闻:%2 **************** @ TK2MSFTNGP02.phx.gbl ...

我可以使用以下语法使其在Visual Web Developer 2005中工作:

如果DropDownBox1.SelectedItem.Text =" Normal"然后
DropDownBox6.Enabled = False
其他
DropDownBox6.Enabled = True
EndIF

我希望以下内容适用于VB 2005但是我没有成功地使它工作。

如果ComboBox.SelectedItem.Text =" Normal"但是对于所选项目没有Text子对象

Cor Ligthert [MVP]" <无************ @ planet.nl>在消息中写道
新闻:ef ************** @ TK2MSFTNGP04.phx.gbl ...

你能告诉它你会怎么做在aspnet中,也许是在VBNet中向你展示它的最佳方式。

你知道最活跃的VB新闻组的方式是什么?

microsoft .public.dotnet.languages.vb


" news.microsoft.com" <再*** @ cox.net> schreef in bericht
新闻:%2 **************** @ TK2MSFTNGP04.phx.gbl ...

我是新手,所以忍受我。

我有一套组合框。让我们称它们为ComboBox1和ComboBox2。

ComboBox1项目是从表中提取的。当用户选择某个
项时我想禁用ComboBox2。我可以在Visual Web开发人员中使用它,但在Visual Basic 2005中没有成功。




I am new to this so bear with me.

I have a set of combo boxes. Lets call them ComboBox1 and ComboBox2.

ComboBox1 items are pulled from a table. When a user selects a certain item
I want to disable ComboBox2. i can make this work in Visual Web Developer,
but have been unsuccessful in Visual Basic 2005.

解决方案

Can you show it how you would do it in aspnet, maybe is that the best
traject to show it you in VBNet.

Did you know by the way that the most active VB newsgroup is

microsoft.public.dotnet.languages.vb

Cor

"news.microsoft.com" <re***@cox.net> schreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...

I am new to this so bear with me.

I have a set of combo boxes. Lets call them ComboBox1 and ComboBox2.

ComboBox1 items are pulled from a table. When a user selects a certain
item I want to disable ComboBox2. i can make this work in Visual Web
Developer, but have been unsuccessful in Visual Basic 2005.



I can make it work in Visual Web Developer 2005 with the following syntax:

If DropDownBox1.SelectedItem.Text = "Normal" Then
DropDownBox6.Enabled = False
Else
DropDownBox6.Enabled = True
EndIF

I was hoping that the following would work in VB 2005 but so far I have been
unsuccessful in making it work.

If ComboBox.SelectedItem.Text = "Normal" but there is no Text child object
for Selected Item.

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:ef**************@TK2MSFTNGP04.phx.gbl...

Can you show it how you would do it in aspnet, maybe is that the best
traject to show it you in VBNet.

Did you know by the way that the most active VB newsgroup is

microsoft.public.dotnet.languages.vb

Cor

"news.microsoft.com" <re***@cox.net> schreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...

I am new to this so bear with me.

I have a set of combo boxes. Lets call them ComboBox1 and ComboBox2.

ComboBox1 items are pulled from a table. When a user selects a certain
item I want to disable ComboBox2. i can make this work in Visual Web
Developer, but have been unsuccessful in Visual Basic 2005.




DJ,

In my idea is the currenttext in a combobox is always the selectedtext.
Combobox1.text = normal

What do I miss?

Cor

"DJ" <re***@cox.net> schreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...

I can make it work in Visual Web Developer 2005 with the following syntax:

If DropDownBox1.SelectedItem.Text = "Normal" Then
DropDownBox6.Enabled = False
Else
DropDownBox6.Enabled = True
EndIF

I was hoping that the following would work in VB 2005 but so far I have
been unsuccessful in making it work.

If ComboBox.SelectedItem.Text = "Normal" but there is no Text child object
for Selected Item.

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:ef**************@TK2MSFTNGP04.phx.gbl...

Can you show it how you would do it in aspnet, maybe is that the best
traject to show it you in VBNet.

Did you know by the way that the most active VB newsgroup is

microsoft.public.dotnet.languages.vb

Cor

"news.microsoft.com" <re***@cox.net> schreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...

I am new to this so bear with me.

I have a set of combo boxes. Lets call them ComboBox1 and ComboBox2.

ComboBox1 items are pulled from a table. When a user selects a certain
item I want to disable ComboBox2. i can make this work in Visual Web
Developer, but have been unsuccessful in Visual Basic 2005.





这篇关于ComboBox文本返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆