Create custom winform search box

Hi want to have a textbox like control, but when you type a control appears underneath the control a bit like a combo box. but my user control has images and more advanced search features. I have created the user control popup. but how to I show it when typing in a textbox, align it correctly, and when control is left make the user control disappears. its going to look up products and want to use it in many places.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike TomlinsonHigh School Computer Science, Computer Applications, and Mathematics TeachersCommented:
It's in C#, but study how Lukasz Swiatkowski implements this type of feature in his Simple Popup Control article over at CodeProject.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Éric MoreauSenior .Net ConsultantCommented:
You have code sample that you can share to help you debug?
Ess KayEntrapenuerCommented:
You can accomplish this using infragistics combobox,

Heres a link to the image of what you will accomplish

the combobox can take a subproperty of a ultragrid, and the ultragrid can hold and display images

**Please note: The image is for a jquery,
but it is also available in
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

taz8020Author Commented:
HI thanks all I have used Mike Tomlinson link and all works well, I had to set the following to false to get it to work.

PopupForm.AutoClose = False
PopupForm.FocusOnOpen = False

the only one thing that is bugging me is if you switch to another app the usercontrol shows ontop of all programs. On the show method you have to send the control that's calling it to get the location.

Any ideas, I tried using close on mainform.deactived event but does not work on user control popup
Ess KayEntrapenuerCommented:
use the lost focus event
when lost focus, popup.hide()
taz8020Author Commented:
I can not use lost focus as its looses focus when you click on things in the popup. any other ideas
Ess KayEntrapenuerCommented:
can you uses popup. hasfocus?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.