taz8020
asked on
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You have code sample that you can share to help you debug?
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
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
ASKER
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
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
use the lost focus event
when lost focus, popup.hide()
when lost focus, popup.hide()
ASKER
I can not use lost focus as its looses focus when you click on things in the popup. any other ideas
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.