Click here to Skip to main content
15,891,763 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
Herman<T>.Instance 5-Aug-11 10:39am    
can't you async the load of the file (so load in another thread)?

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900