ListBox

qyxc 2003-01-18 02:56:43
listbox中对其中一行双击,使其显示到Edit中,是什么事件?怎么写?
...全文
32 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
yczyk 2003-01-18
  • 打赏
  • 举报
回复
呵呵,太简单了点吧!
gzyzljk 2003-01-18
  • 打赏
  • 举报
回复
Edit1.Text:=Listbox1.Items.Strings[listbox1.ItemIndex];
jackie168 2003-01-18
  • 打赏
  • 举报
回复
Edit1.Text:=listbox.items[listbox.itemindex];
yayx 2003-01-18
  • 打赏
  • 举报
回复
这样就行了
加入:
procedure TForm1.ListBox1DblClick(Sender: TObject);
begin
Edit1.Text:=Listbox1.Items.Strings[listbox1.ItemIndex];
end;
lincanwen 2003-01-18
  • 打赏
  • 举报
回复
双击事件:
procedure TForm1.ListBox1DblClick(Sender: TObject);
begin
edit1.Text:=ListBox1.Items[ListBox1.ItemIndex];
end;

5,379

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧