ListBox行单击“事件” [英] ListBox Row Click Event

查看:221
本文介绍了ListBox行单击“事件”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


列表框行点击/双击是否有任何事件。我想根据所选行和点击它打开一个新表单。我知道整个列表框中有一个,但我正在寻找一个行点击事件。我想知道是否有这样的事件或任何其他方式来实现它。



谢谢

Sree

解决方案

嗨Sree,如何使用更新后事件触发打开表单。

没有行特定事件。基本上,您需要编写所需的任何例程,查看所选行并执行您正在尝试执行的任何功能。查看列表框中的帮助文件''Selected'',''ListCount''和''Column''属性。使用那些你应该能够提出一个很好的循环,它贯穿你的列表框的行,并在所选行的数据上执行你需要的任何功能。


如果您需要更具体的内容,请使用示例数据发布您正在尝试的任何内容。我知道你说你试图打开表格,但基于什么?


-Mega


don


感谢帮助。我会尝试的。


Megalog


i我在列表中填写员工信息框和每条记录指的是一名员工。当我点击特定记录/行时,我想要做的是打开所选员工详细信息页面/表单。我有员工姓氏,名字,用户名(主键),电子邮件listbox。我希望在一些双击事件上打开特定的表单而不是一次点击。


希望这有帮助

Sree


Hi all

Is there any event for list box row click/double click.I want to open a new form based on the row selected and when it is clicked.I know there''s one for the whole list box but i am looking for a row click event.I want to know if there is such an event or any other way to implement this.


thanks
Sree

解决方案

Hi Sree, How about using the after update event to trigger opening the form.


There is no row specific event. Basically you need to code whatever routine you need, to look at the selected row(s) and perform whatever function it is you''re trying to do. Check out the help file on the listbox''s ''Selected'', ''ListCount'', and ''Column'' properties. Using those you should be able to come up with a nice loop that runs through your listbox''s rows and performs whatever function you need on the selected row''s data.

If you need anything more specific, then please post whatever it is you''re specifically trying to do, with example data. I know you said you''re trying to open forms, but based on what?

-Mega


don

thanks for the help.i''ll try that.

Megalog

i am populating employee info in the list box and each record refers to one employee.What i am trying to do is open the selected employee details page/form when i click on the particular record/row.I have Employee Last Name ,First Name ,UserName(primarykey),Email in the listbox.I want the specific form to be opened on some double click event rather than a single click.

hope this helps
Sree


这篇关于ListBox行单击“事件”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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