|
-
Aug 8th, 2000, 12:14 AM
#1
Thread Starter
Lively Member
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
-
Aug 8th, 2000, 12:57 AM
#2
this probably isn't exactly what you're looking for but...
??
Sunny
-
Aug 8th, 2000, 01:20 AM
#3
Thread Starter
Lively Member
.....
i don't want to make my vb program refresh but the windows display refresh....
-
Aug 8th, 2000, 02:54 AM
#4
If for example you're trying to refresh IE then you could use SendKeys to send F5 to it and refresh it.
Sunny
-
Aug 8th, 2000, 09:07 AM
#5
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
-
Aug 8th, 2000, 09:28 AM
#6
Thread Starter
Lively Member
Huh?
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|