Create custom winform search box vb.net

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.
LVL 3
taz8020Asked:
Who is Participating?
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 TomlinsonMiddle School Assistant TeacherCommented:
It's in C#, but study how Lukasz Swiatkowski implements this type of feature in his Simple Popup Control article over at CodeProject.
0

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?
0
Ess KayEntrapenuerCommented:
You can accomplish this using infragistics combobox,

Heres a link to the image of what you will accomplish

http://help.infragistics.com/jQuery/2012.2/ui.igcombo

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 vb.net
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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
0
Ess KayEntrapenuerCommented:
use the lost focus event
when lost focus, popup.hide()
0
taz8020Author Commented:
I can not use lost focus as its looses focus when you click on things in the popup. any other ideas
0
Ess KayEntrapenuerCommented:
can you uses popup. hasfocus?
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.