18,156 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
50
views
How to dynamically create and data-bind ComboBox in code?
In my Avalonia app using the MVVM Community Toolkit, I need to dynamically create a ComboBox from code-behind, having it data-bound to a collection of a subclass of a class that encapsulates ...
0
votes
2
answers
109
views
WPF ComboBox equivalent of VB6 ComboBox.Click event
I am migrating an old VB6 application to WPF (.NET 8).
In VB6, the ComboBox control has a Click event that fires only when the user actually selects an item from the drop down list. It does not fire ...
1
vote
4
answers
220
views
Split function with if statement to define string value (excel vba)
My VBA Excel code is using the split function from a combo box value. It takes an ID (alias=GG) which is a value right of the 6th hyphen.
GG = Split(Sheet1.ComboBox1.Value, "-")(6)
example ...
1
vote
2
answers
94
views
How to set the Backcolor in a DataGridViewComboBoxCell?
I had a DataGridView (dgv) with a TextBoxColumn where I did set different BackColors in Dgv_CellFormatting depending on the kind of the row content. This worked as expected.
Now I replaced my ...
0
votes
1
answer
102
views
ComboBox SelectedValue cannot be changed from null
I have a combobox that I'm trying to assign a default value to, but the assignment is not being recognized. I have looked at the various recommended threads relating to this, and I don't see what if ...
0
votes
1
answer
73
views
How do I populate a combobox based on the selection in another combobox?
I've been working on a simple program to track machine maintenance instances in a CSV file for future analysis.
Everything seems to work except for populating the list for the combTask combobox based ...
2
votes
2
answers
81
views
JavaFX combobox top cell style?
I want to set the topmost cell and the bottommost cell in the list-view of a combo-box to have rounded corners (without setting rounded corners for the other cells). What should I do?
thank you for ...
4
votes
0
answers
202
views
How does WinForms manage to display 1⁄3 for the Verdana font when it doesn't exist in that font? And why does it not work for Windows 11?
We had a bug with a □しろいしかく appearing instead of 1⁄3 in one of our applications when it was run on Windows 11 rather than Windows 10. This was because we were using a font (Verdana) which did not contain the 1⁄3...
1
vote
1
answer
184
views
ttk.Combobox selected text vanishes when focus is lost (clam theme, readonly)
I'm new to python and recently started coding a combobox using the "clam" UI theme.
However, the selected text vanishes when focus is lost from the dropdown? It seems confined to "clam&...
0
votes
0
answers
21
views
Setting the WPF ComboBoxItem Background Color when an ObjectDataProvider binding is used to populate ComboBox
I have a ComboBox with an ObjectDataProvider binding to an enum of colors. I have the enum descriptions displaying. I would like to have the ComboBoxItem background color match the designated color. I'...
6
votes
1
answer
191
views
Is it possible to use Buttons while keeping the dropdown List of a ComboBox open?
I'm trying to create a ComboBox with 2 Buttons (Sort / Expand).
I've created the Buttons in code and I show them in the DropDown Event of the ComboBox, right next to the ComboBox.
Is it possible to ...
0
votes
3
answers
183
views
Drawing red rectangle around a combo
I have a simple dialog application in MFC with 2 combo boxes.
I am trying to use the dialogs paint handler to add a rectangle around the combos if they have no item selected:
void ...
1
vote
0
answers
153
views
WPF ComboBox not updating height when items change
I have a ComboBox that has its selected item and source bound.
<ComboBox
ItemsSource="{Binding Ids}"
IsEnabled="{Binding Path=Ids.Count, Converter={StaticResource ...
1
vote
0
answers
136
views
Providing "loading" status in a combobox to assistive technologies
I am implementing a combobox inspired by https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-autocomplete-list/. Now, the combobox should also have the feature to load items ...
0
votes
1
answer
109
views
How to fill a ComboBox (in Libre Office Calc) with a python script?
I work on a Calc file, with several tabs. Some are used to store datas (like SQL tables).
With a python macro, I want to fill a ComboBox "Classes" using the datas in one of these tables.
My ...