从组合框中禁用一些列表项!!! [英] Disable Some List Items from Combo Box !!!

查看:89
本文介绍了从组合框中禁用一些列表项!!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All Experts,


我是一名中等VB程序员。我正在使用VB 6.0和MS Access开发一个应用程序。操作系统是Win XP。它是一个多用户应用程序。


我想知道的是如何从组合框中禁用2或3个项目?


我使用的是带有Style 2的组合框。加载表单时,所有字段都来自Access Table。 (例如,如果我的列表是A0,A1,A2,A3,A4 ...),并且在运行时如果我想从选择中禁用A1和A3 ...是否可以这样做?

您对此事的快速回复将受到高度赞赏,


您也可以通过电子邮件发送邮件ID已删除


谢谢&此致,


Hiren(内罗毕 - 肯尼亚)

Hello All Experts,

I am a Moderate VB Programmer. I am developing one Application at the moment with VB 6.0 and MS Access. Operating System is Win XP. Its a Multi User application.

What I want to know is How do I Disable 2 or 3 Items from Combo Box?

I am using Combo Box with Style 2. and all Fields come from Access Table while loading the form. (e.g. If My List is A0, A1, A2, A3, A4...) and at run time if i want to Disable A1 and A3 from Selecting... Is it possible to do so?

Your quick response on this matter will be highly appreciated,

You can email me as well on mail id removed

Thanks & Regards,

Hiren (Nairobi - Kenya)

推荐答案

问题从VB文章部分转移到Visual Basic论坛。
Question moved to Visual Basic Forum from VB Articles Section.


你需要使用控件的ITEMDATA属性。
You need to use ITEMDATA property of the control.


嗨Debasis


你能告诉我我应该使用哪种ITEMDATA Propery吗?如果你能详细说明,请详细说明。


谢谢,

Hiren


这篇关于从组合框中禁用一些列表项!!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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