combobox

Stretch ComboBox Content in Silverlight

This is driving me nuts. I can't seem to get the data template within my ComboBox to stretch the width of the pulldown. What gives? <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition Height="30" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <ComboBox x:Name="Searches...

C# Win Forms Auto-Updating Controls

Hello! I have a datagridview and a combobox which get populated randomly with data. However, the new data is never displayed automatically. Someone mentioned the idea of invalidating the control to force the application to redraw it and thus iterate through the contents and populate the control with the new data. Does anyone know which ...

C# - .net controls as ComboBox Items

Can we place C# textBox controls in a C# dropdown combobox? That is, when the combo is dropped down, each of its items will show a textbox. ...

Getting all variables inside a struct of unknown size (C#)

I have a project in which I have to get all the variables from a struct in a different class and add all their names to a combo box in a form. My primary issue at the moment is iterating through the struct in a way that I can add each variable individually to the combo box. I tried doing this: msgVars vars = new msgVars(); ...

WinForms combbox with multiple columns (C#)?

Hello, i am using currently the following code to populate a combobox: combobox.DataSource = datatable; combobox.DisplayMember = "Auftragsnummer"; combobox.ValueMember = "ID"; Is there a way to display multiple columns. I tried "Auftragsnummer, Kunde, Beschreibung" for DisplayMember but it did not work. Thanks, Dawit ...

Why ComboBox hides cursor when DroppedDown is set?

Let's create WinForms Application (I have Visual Studio 2008 running on Windows Vista, but it seems that described situation takes place almost everywhere from Win98 to Vista, on native or managed code). Write such code: using System; using System.Drawing; using System.Windows.Forms; namespace WindowsFormsApplication1 { public cla...

How to select specific combobox item with multiple keystrokes? First few characters of item

Windows explorer in XP will allow you to make a file selection based on typing a few characters. I would like to know if there is any simplistic .net feature I can use to mimic this behaviour in a combobox? I think I've seen this happen in comboboxes before, and would like to know if there is a property I can use? I know I could develo...

The .NET CF ComboBox doesn't have a DropDown event, so what's the alternative?

I'm working on a .NET 3.5 SmartDevice project and I could really use the ComboBox DropDown event, but the .NET Compact Framework version doesn't have it. Is there another way to be made aware of when the list has dropped down? ...

WPF Toolkit Combobox DisplayMemberPath not working

I am using the very handy WPF Toolkit Xaml to have a nice GUI. I am having issues however with the combobox items. I have successfully bound to the combobox control, but the items in the dropdown show the bound object, not the displaymember. Funny enough, when I select an item, the correct displaymember is shown in the textbox. Any h...

Set TextSearch.Text for WPF-ComboBoxItem via DataTemplate

Hi Everybody, I use a datatemplate to visualize some items in a ComboBox, the ItemsSource is bound to an ObservableCollection. To keep it simple, let's say I put persons into the ObservableCollection: public class Person { public string FirstName { get; set; } public string LastName { get; set; } } My DataTemplate looks like ...

wpf ComboBox Async binding to items source problem

i have a mvvm app that the main window is a tab control. i use the itemssource to bind items to the combo box, everything works fine until i go to another tab and for some reason the selected item of the combo box getting the null value, any ideas ? the binding is twoway updatesource onpropertychanged and the property is type of observa...

Flash: ComboBox and List filled with XML data, then create links

Hello World! I am looking to generate a ComboBox with a list from xml, and then create links from those items. Secondly, I would like to to the same, but with a list and a second xml property. ComboBox - with the list being the "name" property. http://hpn-marketing.com/drmc/content/index.php/specialty/flashxml/ List - with the ...

flex combobox customize problem

Hi All , I'm new to flex and i need to create item and subitems in combobox, where only subitem is clickable. similar to what is shown in the given link as under: http://blog.flexexamples.com/2007/09/25/creating-a-custom-combobox-item-renderer-in-flex/ but here both header and option are clicked at the same time whereas i need that onl...

How to set tooltips to combobox items @ VB.NET ?

Hi, I have a combobox with a given width. It may occur that one row of the data is partially hidden (the combobox might be too narrow). I'd like to show the whole line by using a tooltip or right-click context menu. Currently I can't find how to 'catch' the row that I'm currently holding on or passing over by mouse. Please tell me. Th...

Windows UI Design - The Combo Box

Until today I had not realized there was a difference between a list-box (like the HTML Form control drop-down selection box) and a "combo box" which is a combination of the list-box and the text-entry control. So the ComboBox allows the user to enter in a new value and if programed to do so, will append the value to the list of values ...

WPF ComboBox - Showing something different when selecting a value

What I need to accomplish is a ComboBox that shows People. When you expand the drop-down it shows FirstName and LastName, but when you select a person, the value shown at the combobox should be just the person's first name. I have the following ItemTemplate: <ComboBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Ho...

jQuery Combo Boxes (User Selection) / Text Validation

Is there a way to have a text validation tool for jQuery such that: Box 1: Hi Box 2: Automatically fills with Hi if Hi is entered in Box 1 In another case if, Box 1: Bye Box 2: If the user enters Bye in Box 2 it says that they entered an invalid response Also is it possible to have it such that if Choice A is selected in a a combo bo...

C# 2.0 generics: How to create an Action object with zero parameters

First of all, I'm using VS2005 and C# 2.0. I'm trying to set a combobox' Text property from inside the SelectedIndexChanged event. From another thread here on StackOverflow this was proposed done the following way: BeginInvoke(new Action(() => someCombobox.Text = "x" )); Now, first of all this returns a compiler error for me. I belie...

Wpf Combobox Rounded Corners

hi, How can i make a combobox edges rounded..?.I have tried in blend,but no success till now..Any input will be highly helpfull ...

Dynamically adding combobox in DataList / Listview

I have a web page where I have to let the user dynamically add /remove comboboxes. I have a page I did a year ago where I used a datalist control to hold all the controls. Is a listview control any better? or is there a better approach? ...