Why can't this code close the window "ie" ?

Last post 08-15-2006 1:05 PM by StrongTypes. 1 replies.

Sort Posts:

  • Why can't this code close the window "ie" ?

    08-15-2006, 11:30 AM
    • Member
      220 point Member
    • chu2654
    • Member since 01-11-2006, 9:26 AM
    • Posts 46

     Private Sub objWatcher_FileChanged(ByVal FullPath As String) Handles objWatcher.FileChanged
            Dim x As Integer, i As Integer

            i = FindWindow(vbNullString, "ie")
            If Not i = 0 Then
                MessageBox.Show("found")
                PostMessage(i, CInt(&H10), vbNullString, vbNullString)
            End If

            frmIE = New ie
            frmIE.Show()

        End Sub

     

     

    Robert Chu
  • Re: Why can't this code close the window "ie" ?

    08-15-2006, 1:05 PM
    • All-Star
      30,698 point All-Star
    • StrongTypes
    • Member since 12-13-2005, 4:21 PM
    • California
    • Posts 6,007
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs
    As you have been advised multiple times in the past (1369849 and 1367965) the ASP.NET forums are available for asking ASP.NET related questions. For non-ASP.NET related questions such as Windows forms, you'll need to ask on the MSDN Forums.

    Ryan
Page 1 of 1 (2 items)