Êµ ¼Ê ÉÏ IEÊµ ÏÖ µÄ URL×Ô ¶¯ Íê ³É ¹¦ ÄÜ ²¢ ²» ÊÇ µ÷ ÓÃ APIÊµ ÏÖ µÄ ¡£ Äã ¿É ÒÔ Ê¹ ÓÃ Ò» ¸ö ÏÂ À­ ¿ò »ò ÎÄ ±¾ ¿ò +ÁÐ ±í ¿ò µÄ ·½ Ê½ Êµ ÏÖ ¡£ 
    ÏÂ Ãæ ÊÇ Ò» ¸ö ÓÃ ÏÂ À­ ¿ò Êµ ÏÖ µÄ Ê¾ Àý £º 
    ' *************Declarations 
    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 
     
    Private Const WM_SETREDRAW As Long = &HB& 
    Private Const CB_FINDSTRING As Long = &H14C& 
     
     
    *************Here is the sub that will implement auto search 
     
     
    Public Sub SearchCombo(InControl As Object) 
    On Error GoTo trap 
     
    Dim StrPos As Long 
    Dim lPos As Long 
    Dim SearchStr As String 
     
     
     If TypeOf InControl Is ComboBox Then 
     StrPos = InControl.SelStart 
     SearchStr = Left$(InControl.Text, StrPos) 
     
     lPos = SendMessage(InControl.hwnd, CB_FINDSTRING, 0, ByVal SearchStr) 
     
     If lPos >= 0 Then 
     InControl.Text = InControl.List(lPos) 
     InControl.ListIndex = lPos 
     End If 
     
     With InControl 
     .SelStart = StrPos 
     .SelLength = Len(InControl.Text) 
     End With 
     End If 
     Exit Sub 
    trap: 
     MsgBox Err.Description 
    End Sub 
     
     
    '**************Implement it like this************ 
    Private Sub cboParent_Change() 
     Call SearchCombo(cboParent) '<--pass the combo box to the sub by name 
    End Sub 
<END>     
Private Declare Function SHAutoComplete Lib "Shlwapi.dll" _ 
     (ByVal hWndEdit As Long, ByVal dwFlags As Long) As Long 
    Õâ ¸ö º¯ Êý ¿É ÒÔ Âú ×ã Äã µÄ Òª Çó ¡£ 
<END>
    