combobox1.SetFocus;<br> //keybd_event( VK_Control, MapVirtualKey(VK_Control, 0 ), 0 , 0 ); //Control key down<br> keybd_event( VK_MENU, MapVirtualKey(VK_MENU, 0 ),KEYEVENTF_EXTENDEDKEY, 0 ); // Alt down<br> keybd_event( VK_Down, MapVirtualKey(VK_Down, 0 ),KEYEVENTF_EXTENDEDKEY, 0 ); // down arrow key down<br> //keybd_event( VK_Control, MapVirtualKey(VK_Control, 0 ), KEYEVENTF_KEYUP , 0 ); //Control arrow key up<br> keybd_event( VK_MENU, MapVirtualKey(VK_MENU, 0 ), KEYEVENTF_KEYUP , 0 ); //Alt key up<br> keybd_event( VK_Down, MapVirtualKey(VK_Down, 0 ), KEYEVENTF_KEYUP , 0 ); //Down key up<br>以上模拟了一个用程序打开组合框的情况。有的时候用得着。<br>