Richedit和列表框关系 [英] Richedit and Listbox Relation

查看:113
本文介绍了Richedit和列表框关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我在表单上有列表框和richedit控件
当我单击
时,列表框在列表中有2000个项目,每个项目都链接到RTF文件 列表框richedit视图上的一项是RTF文件,
但我需要一些简短的代码或功能...对我的程序
如果我通常使用richedit.line.loadfromfile方法我的程序
线是2000线,这会花我很多时间吗?!!

谢谢uuuuuuuuuuuuuuuuu

hello

i have listbox and richedit control on my form
listbox have up 2000 item in list and each item link to RTF file , when i click
one item on listbox richedit view that''s RTF file ,
but i need some short code or function ... to my program
if i use normally richedit.line.loadfromfile method my program
line be 2000 line and that take my time long?!!

thank uuuuuuuuuuuuuuu

推荐答案

第一个问题是设计:几乎没有人会耐心浏览2000个列表框项目.您的短代码"无济于事.

列表框的处理非常简单.您可以将RTF文件的名称存储在Tag属性中.在选择更改的情况下,您键入将标签转换为字符串,加载RTF并在您的丰富编辑控件中显示其内容.

—SA
First problem is the design: nearly no one would have patience to navigate through 2000 list box items. Your "short code" won''t help.

The processing of list box can be pretty straightforward. You can store the name of the RTF file in the Tag property; in the event of selection change you type cast the tag to string, load RTF and show its content in your rich edit control.

—SA


这篇关于Richedit和列表框关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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