Click to See Complete Forum and Search --> : Form fails to load due to RichTextBox ActiveX control


Colin Grant
August 5th, 1999, 04:50 AM
Using VB5, a simple form fails to show on different PCs (mixture on Win'NT4 and Win'95) because one of the controls on it is the RichTextBox. The failure appears with one of Microsoft's unhelpful 'Quitting' message boxes, and no sign of the form. The form works when run on the same PC as it is built on, but not always on others. The reason must lie in the version of the RichTextBox ActiveX control installed on the build PC.

Is there any way to check the RichTextBox control is there during form load / show, and trap it to produce a more sensible response than 'Quitting'?

Ravi Kiran
August 5th, 1999, 05:15 AM
It would be better of with an installation program, so that proper versions are installed before running. It may be a little difficult to catch the version at run time.

A general purpose Err handler may also help , i guess. - probably at the place where the form is loaded/shown (in the calling module.)


RK