I was coding a form to monitor the modem events generated by the FaxMan control. I tried a listviewer control on the form, but it did not work reliably. When the form is hidden, it would update the events in the list. But when the form is visible, it refused to update. Then I tried a 3rd party grid control. The events showed all right in the grid. However, when the number of events is larger than the displayable rows in the grid, the grid will not create a veritical scroll bar. The settings of the grid do allow the scroll bars to show automatically. I used a data table to hold the events. So when a new event is fired, it added to the data table, which is bound to the grid. It seems that the grid will only hold a certain number of rows (the same number of rows in display), and discard the old events one by one when new events are added.
Strange, isn't it? Any ideas to resolve this?
I think this may be related to the fact that Winforms only allows updates to the UI from the main thread and that fact that some of the Faxman events are fired from a background thread. You'll need to marshal the call from the background thread to be able to update the UI. Look at out VB and C# samples to see how they do this.
Thanks for your interest in our products and please let us know if you have any questions.
Data Techniques Support
I did not find any sample codes in the Faxman install folder. Could you provide a code sample for using the background thread to keep track on the events?
Thanks for your info.
I would suggest re-running the FaxMan SDK installer then. It will install a series of samples, the VB.net or C# ones are the one you want to look at.
This question is closed to new answers.