Print Page | Close Window

Change Focus in Combobox' DropDown event?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=18470
Printed Date: 19 September 2024 at 4:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Change Focus in Combobox' DropDown event?
Posted By: mjohn
Subject: Change Focus in Combobox' DropDown event?
Date Posted: 30 May 2011 at 12:40am
Hi.
 I want change the focus in ComboBox_DropDown event, but can't,  How to do it?

////////////////////
Private Sub ComboBox_DropDown()
    Dim frm As form1
    
    Set frm = New form1
    With frm
       .Show vbModeless
.SetFocus
    End With
End Sub
///////////////////

Above code can't make the frm get the focus.
 
Thanks!
 
Product: Xtreme Toolkit Version 15.0.1
Platform: Windows 7 pro
Language: VB6 SP6



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net