Support Center

Weird behavior in FaxMan1.Status events under VB.Net

Gueipin Mar 07, 2012 03:33AM EST

Hi,
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?
Thanks.

2 Data Techniques Responses and 1 Community Responses

Up 0 Rated Down
DTI Support  Data Techniques Employee Mar 07, 2012 10:27AM EST

Hello,

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.

Sincerely,
Sean
Data Techniques Support

Up -8 Rated Down
Gueipin  Data Techniques Employee Mar 09, 2012 02:22AM EST

Hi,
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.

Up -6 Rated Down
DTI Support  Data Techniques Employee Mar 09, 2012 09:31AM EST

Hello,

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.

Sean

This question is closed to new answers.

Contact Us