is there an API code that acts like the refresh button in windows...? or any other method of refreshing the display in windows would be appreciated,,....
thanks
Printable View
is there an API code that acts like the refresh button in windows...? or any other method of refreshing the display in windows would be appreciated,,....
thanks
this probably isn't exactly what you're looking for but...
??Code:Form1.Refresh
Sunny
.....
i don't want to make my vb program refresh but the windows display refresh....
If for example you're trying to refresh IE then you could use SendKeys to send F5 to it and refresh it.
Sunny
It's generally not a good idea to use SendKey's. You can send the WM_PAINT message instead.
Code: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
Const WM_PAINT = &HF
Private Sub Command1_Click()
SendMessage Me.hwnd, WM_PAINT, Me.hDC, 0
End Sub
I dunno what the above code just did, but nothing seem to happen,
and also i;m not fimilar with the sendkey method...
how do i use it to send key to IE?
thanks