
Originally Posted by
shagratt
Old post, but my solution with grids /combos is to make them invisible and then visible again at the end of the loading function
Making a control invisible forces it to lose focus. You can try using WM_SETREDRAW to suppress redraws instead:
Code:
Private Const WM_SETREDRAW As Long = &HB
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Property Let HwndRedraw(ByVal hWnd As Long, ByVal bValue As Boolean)
Call SendMessage(hWnd, WM_SETREDRAW, -bValue, ByVal 0)
End Property
cheers,
</wqw>