Questions tagged as 'combobox'

1
answer

Format the value of the ComboBox pulled from the SQL database (LINQ) in Project C # (WPF)

I need a help in the code below ... I need to get the SQL database float value to be in the Brazilian Real Number Set format in a C # (WPF) project in a ComboBox (such as Double). That is, bring it as String in the IntemsSource and not be in thi...
asked by 25.03.2016 / 14:10
3
answers

How to put a value that is saved in the database in a combobox?

I'm using C # Windows Forms with .NET 3.5. Insert all states of the federation within the property items of my combobox . When I seek a record saved my BD, the combobox assumes the value. For example, when I look for a record that conta...
asked by 31.01.2014 / 12:43
1
answer

How to validate ComboBox?

I have a Form of register that has some fields TextBox and ComboBox , I want my code to allow the user to register only when all fields are filled, but only validating the TextBox thus allowing the registration to be c...
asked by 15.04.2018 / 02:09
3
answers

Array associative State and City Combobox in Javascript

I'm trying to set up this associative array, in case the combobox is the state of São Paulo, you have to show 5 cities in São Paulo, if it's Rio de Janeiro, it shows the 5 cities of Rio de Janeiro. HTML <select id = "estados"> <...
asked by 15.05.2017 / 20:58
2
answers

Make a combobox assume C #

I have doubts about making combobox a value. I have two combobox with the 'low, medium and high' items and I want it if I select low on the combobox it assumes the value 0, if it means medium it assumes 0.5 and if it is selected high it assum...
asked by 19.02.2015 / 13:32
1
answer

Combo box with search

I need to create a combobox that allows the administrator to search the user and that while the administrator is searching, some options that are similar to the one that has been entered appear within the combo. In addition, after finding...
asked by 08.09.2014 / 02:53
1
answer

Passing a Connection string dynamically

Well my problem would be to try to pass a connection string from a txt file. which is also used to bring the items from my ComboBox, the goal and bring a different bank depending on the item selected in the ComboBox. I tried to pass the string t...
asked by 28.08.2018 / 13:55
2
answers

Items in levels within an HTML ComboBox. It's possible?

Let's say you want to list in a ComboBox items for sale on an e-commerce site. But in this list, I want the category name to appear first and below the items. Example: Sports Bike Boots Decoration Carpet Curtain But it wou...
asked by 23.03.2018 / 20:35
1
answer

Load the combobox

When you save a data in the combo box, and in this combo box you have two options (gasoline, diesel, alcohol, natural gas) Selecting diesel and saved works normally. The problem is when I want to load the combo box save always the first va...
asked by 18.04.2017 / 17:23
2
answers

Error in C # when trying to add an inherited component in ToolBox

I'm trying to create a component that inherits from a ComBox. I created the component by following the steps below, the project is available at: link Without any open project > File > New > Project > Class Library (Visual C #)...
asked by 21.07.2015 / 22:40