Click to See Complete Forum and Search --> : VB Status bar not reflecting changes made by SendMessage()


gmichaud
February 9th, 2000, 01:58 PM
Hello,

I have a designed an ActiveX control that finds the first toolbar on a form using EnumChildWindows() and then sends a SB_SETTEXT message to change the text of the status bar.

The API part works well. I am however having a problem reading and changing this new value in Visual Basic after it has been set by my ActiveX.

StatusBar.Panels(1).Text will still return the old value, and if i try to set the text to the old value from Visual Basic it's not getting refreshed as Visual Basic believes that the old value is still active.

I've found various workarounds, but I would like to know if there is a definitive solution to this problem or any good alternatives.

Best regards,

Gabriel Michaud