Results 1 to 6 of 6

Thread: How to refresh windows?

  1. #1

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113
    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




  2. #2
    Guest
    this probably isn't exactly what you're looking for but...

    Code:
    Form1.Refresh
    ??

    Sunny

  3. #3

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113
    .....
    i don't want to make my vb program refresh but the windows display refresh....

  4. #4
    Guest
    If for example you're trying to refresh IE then you could use SendKeys to send F5 to it and refresh it.

    Sunny

  5. #5
    Guest
    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

  6. #6

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113

    Question 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
  •  



Click Here to Expand Forum to Full Width