windows forms: textbox with history - winforms

does anyone know about a windows forms control that acts like the address bar of a browser?
it is just like a textbox, but to the right there is a dropdown menu that shows the history of previously entered text.
thanks a lot!

Look at properties "AutoCompleteCustomSource", "AutoCompleteMode" and "AutoCompletesource" on TextBox class.

You can use a ComboBox for this. Just add the previous entries to the item list. If what you actually want is AutoComplete, the WinForms TextBox control supports that natively.

Related

Looking for a windows form control

I have a windows forms app (I don't have access to the source code) which has a control that looks like this:
On clicking the down arrow, the popup appears from which I can select.
Is this a standard control that I can use, if so which one is it?
If not, then what control comes closest to it?
As #Hans Passant mentioned you can simply add a DropDown to a ComboBox.
Here is a example from MSDN. If you dont want to do the whole thing prgramaticaly just add the controls manualy and check here to see how the databinding works.

C# - How does the ToolTip work?

I was wondering how I am able to add one ToolTip control to the Form, and all the buttons get different texts? How does one object extends all the others, adding diferent things on each one? I don't know if I am being clear, If I don't, please let me know!
Thanks in advance!
I think you are looking for Extender Providers, where you can define new properties for other components.
This is a feature of Visual Studio designer. The ToolTip control does not actually add a property to other controls, but Visual Studio knows that when you have a ToolTip (or any other component that is an Extender Provider), it should add some other properties to property grid of the other controls. All this information is queried from the component that provides those properties (ToolTip). When you set the tooltip for button for example, Visual Studio calls the SetToolTip method of the ToolTip control, to inform it of the new value for the control.
Please refer to provided links for more information.
It's actually very simple.
Lets say you have a windows form with two controls a button and a label.
Now add a tool tip from toolbox to your form named tooltip1.
Now right click on button and go to properties, scroll down until you find tooltip on tooltip1. set the text to whatever you want. Now do the same for label.
Run the program and move the cursor over both the controls. you'll see respective tool tips.

Silverlight Editable Combo Box

I want to use comobox which is editable in my silverlight project, but silverlight doesnt provide a such control.
If any one knows how to create a custom editable combobox in silvelight 4.0 then please help me.
Editable combobox means:
A combo box providing list of
options.
User can enter the value.
Filtering.
Sounds like you are looking for the AutoCompleteBox.
Allows user to type value
Can simply dropdown like a combox
Partial value typed can be used to filter choices using either StartsWith or Contains mode.
Supports a create new entry operation if the final typed value does not match any existing entry
This control is part of the standard SDK and is found in the System.Windows.Controls.Input.dll. You should be able to drag it from the toolbox.
You can also have a look Lookup Combo Box

Need a listbox of drop-down commands

In WinForms, I have to quickly set up a list of items that have some text and a dropdown of commands/buttons. This would be easy in XAML (I'm getting spoiled), but I'm not familiar with Winforms.
Do any of the std Winform controls provide this?
Can anyone suggest a 3rd party control??
The image shows a drop-down being shown when hovered.
Thanks
Looks like a normal context menu, so you can probably do this with the ContextMenuStrip component. Call one of its Show() methods when you want to open it.

I want to create a combobox in wpf

I want to create a combobox with some style. I dont want old dropdown what we are getting. I want some new dropdown which looks very nice. Is there any way to create a dropdown like that.
Plz give me suggestions
Check this link out on msdn. This is the actual control template for the combo box. You can copy and paste this into your application (within your app's Resources).
Create a form and slap a combo box on it with some data in it. Then start changing the control template and view the results. Start off simply by changing colors and adding borders around elements to see what controls which part. Then you can start switching out larger parts of the template to match what you're looking for.
one can start with the standard combobox, and then use various controls and styles to change the look and feel of the control, and it's corresponding drop down.

Resources