Drop-down the DataComboBox in VB6

Drop-down the DataComboBox in VB6

The Api SendMesssage to dropdown a datacombobox (oledb) in vb6 doesn't work. it can be done with the following code:



private Sub Command1_Click()
    DataCombo1.SetFocus
    SendKeys "%{Down}"
End Sub


- this sends the alt + down arrow characters to the combobox.



Comments

  • TOo fAst

    Posted by pikato on 06/26/2005 11:39am

    Its very nice...

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Adaptation and evolution are fundamental requirements of survival -- not only in nature, but also in business. Our world has changed dramatically in a short amount of time. Many businesses are fueling and capitalizing on this change, while others are desperately clinging to a bygone era. Who is left standing in the years and decades ahead should come as no surprise. This edition of Unleashing IT highlights the companies that are embracing new circumstances, new methods, and new opportunities. By downloading …

  • On-demand Event Event Date: August 14, 2014 Data protection has long been considered "overhead" by many organizations in the past, many chalking it up to an insurance policy or an extended warranty you may never use. The realities of today makes data protection a must-have, as we live in a data-driven society -- the digital assets we create, share, and collaborate with others on must be managed and protected for many purposes. Check out this webcast and join Seagate Cloud Systems and Solutions Chief …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds