Discussion Locked

Could somebody help me fixing my OCX?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have an annoying problem with OCX.

I have created an OCX that extend the TreeView. It use TreeView ADODB object, so I can define each level of the tree as a SQL select statement.

The OCX was successfully compiled, and I have put it on my form. But each time I add a new instance of ADODC to my form, my OCX turn inactive i.e. it get black strips all over it's face.

Could anyone tell me, what I have done wrong here?

Thx and regards,
Eka.

5 replies

by gauravbajaj77

I am not very sure about it, but the wild guess. Try implementing repaint event. May be at the time of repainting the form its losing its view.

by eka-l

Nope, the paint event couldn't help it.
Anyway, thanks for the suggestion.

by gauravbajaj77

I am not very sure about it, but the wild guess. Try implementing repaint event. May be at the time of repainting the form its losing its view.

This discussion is closed to new replies.