There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer audio black screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware network networking nvidia outlook outlook 2003 outlook express partition printer problem router slow software sound trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
How do I select an item in an external applications combobox?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
bradle95's Avatar
Member with 46 posts.
 
Join Date: Jul 2003
11-Oct-2005, 02:12 PM #1
Question How do I select an item in an external applications combobox?
I use "lresult = SendMessage(cboxhandle, CB_SETCURSEL, Text1.text - 1, 0&)" to set the proper item, how do I actually select it?
isildur100's Avatar
Junior Member with 9 posts.
 
Join Date: Oct 2005
Experience: Advanced
14-Oct-2005, 04:41 PM #2
What are you trying to do exacly? Is this combo box in your application or is it in another application running on your computer?
bradle95's Avatar
Member with 46 posts.
 
Join Date: Jul 2003
14-Oct-2005, 05:48 PM #3
I am trying to select an item from a combobox in another application running on the the computer. Using the function that I posted before, I can highlight the correct item, but it does not actually select it. How can I select this item?
isildur100's Avatar
Junior Member with 9 posts.
 
Join Date: Oct 2005
Experience: Advanced
17-Oct-2005, 10:53 AM #4
I think you have to use another message to actually click on the selected item. Look in MSDN for the BN_CLICK and NM_CLICK messages.

Actually, for combo boxes, look for the CBN_SELCHANGE message.

Last edited by isildur100 : 17-Oct-2005 10:52 AM. Reason: added information
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:48 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.