[Webinar] Streamline your web hosting managementRegister Today


Putting a combo box in a StatusBar panel

Posted on 2000-01-30
Medium Priority
Last Modified: 2010-05-02
How do a place a Combo Box inside a Status Bar panel?
Question by:mcdonald_g
  • 2
LVL 14

Accepted Solution

mcrider earned 200 total points
ID: 2444761
You have to use an API to do this... Add the following to a MODULE:

   Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long

Then you can do this:

   SetParent Combo1.hWnd, StatusBar1.hWnd

Remember to set the parent back to the form in the form unload event, otherwise, the application may crash.

   SetParent Combo1.hWnd, Form1.hWnd


Author Comment

ID: 2454062
LVL 14

Expert Comment

ID: 2456662
Thanks for the points! Glad I could help!


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 12 hours left to enroll

611 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question