|
Which is exactly the answer I gave!
I must get a clever new signature for 2011.
|
|
|
|
|
|
|
Sorry, but this is not something I have ever used. I would suggest you open a new question so others will see it.
I must get a clever new signature for 2011.
|
|
|
|
|
|
|
Great, thanks, virtual mode is of value to handle large lists especially with large icons.
I will use it from now for those purpouses.
However I presume I will not be able to use virtual view for log event because the list with those events is not static.
There are many threads which use global logger class to report events. They are stored in a queue and once queue limit exceeds some constant 100,000 previous one is dequeued.
Log event addition is safe with lock.
It is possible that in virtual list view between RetrieveVirtualItem() calls threads may report dozens of new events, queue will move and it will end up of showing the same or odd events several times.
Чесноков
|
|
|
|
|
|
|
No you missed the point. No one was telling you they couldn't handle it, or that the controls could not support it. They have been telling you it is not a good design. And using the argument that Microsoft does it is not valid. The Event Viewer and such controls are written specifically for high performance situation in C++. You are not doing that are you?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
this entire thread got way too much attention...
do or do not, there is no try
|
|
|
|
|
because the topic is a challenge to display 100,000 in as little time as possible, and to find a user who may process them all
Чесноков
|
|
|
|
|
The common way is to load items which are currently visible (plus some more for a buffer) and continue loading items on demand as user scrolls the list down.
|
|
|
|
|
Preload entries for viewable area and maybe a little around, then load entries only when they should be shown. Cannot specify more concrete, haven't programmed for windows for years. NEVER ever do progress bars for filling controls, this nerves a lot especially if you clicked the wrong control, always use lazy loading. Java AWT is particularly good designed for this approach
|
|
|
|
|
I use the telerik winforms suite for similar operations, because it can
Telerik gridview
|
|
|
|
|
I met the similar problem.
Once I wrote a program for retrieving images from a website and I want that users can be notified about the downloading process, so I added a status bar on main GUI, and let the downloading process works on the other thread(let's say B), when it is retrieving the images , the B has to report its status to GUI which is on main thread(let's say A).
But B can not access the status bar which belongs to A. So there is a method call BeginInvoke(xxxx);
With this method, it enables B to access resourses on A.
So I think it should be the answer that you are looking for.
Give me reply whatever it works or not
cheers
|
|
|
|
|
You need to use background worker and report the progress with its ReportProgress() function.
Чесноков
|
|
|
|
|
Is the code calling BeginUpdate and EndUpdate? It might make a difference, but it's still going to be slow...
|
|
|
|
|
No, I set the list view Visible to false during events addition.
Otherwise the process is very slow.
Чесноков
|
|
|
|
|
Thanks for this question. I have an application with the same problem. The answers by some smart folks here are very helpful in solving this problem.
|
|
|
|
|
You want a virtual listview ..
|
|
|
|
|
How to save image in folder using c# in windows application
Plz Reply to me
|
|
|
|
|
I googled "save image in C#" and found the below link as the first one that should suffice your requirement.
http://msdn.microsoft.com/en-us/library/9t4syfhh.aspx[^]
You can use Image.Save on any event in the windows application.
If you are looking for something specific, please elaborate.
Praveen Raghuvanshi
Software Developer
|
|
|
|
|
I want to show an image on crystal report. the image is saved in database (sql) and the datatype of field is image.
i saved the image by converting it (image) in binary form.
Is there some way to show that image on crystal report . its an windows application.
plz help me
|
|
|
|
|