18,163 questions
0
votes
1
answer
34
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
4
answers
198
views
Split function with if statement to define string value (excel vba)
My vba excel code is using split funtion 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 return ...
0
votes
1
answer
101
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 ...
2
votes
2
answers
78
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 ...
1
vote
1
answer
177
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&...
6
votes
1
answer
182
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 ...
1
vote
0
answers
149
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 ...
0
votes
1
answer
101
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 ...
1
vote
0
answers
118
views
How do I add a DataSource to a ComboBox without selecting the first item?
This code:
var dataSource = new List<object> { "red", "blue", "green", "cyan", "magenta", "yellow" };
comboBox1.DataSource = ...
0
votes
1
answer
70
views
How to make a TDbLookUpComboBox equivalent using LiveBindings?
I am using RAD Studio 12.2. The data source is an SQLite table.
How to create an analogue of TDbLookUpComboBox using LiveBindings? Is it possible without code?
The articles I found do not help.
0
votes
1
answer
45
views
Method or data member not found when trying to filter a table in a subform. MS-Access
I am trying to filter a list of production numbers based on the staff member who made them. I am using the StaffID in column 0 of a combobox to do this.
When I try to run the code, I get a compile ...
0
votes
1
answer
79
views
Populating a combo box and getting a header when i do not want one. Also causes an error 3075
I am trying to populate a combo box based on whether a staff member is still employed. I have managed to get it to populate the box but it has a header that i don't want and can't seem to get rid of.
...
0
votes
1
answer
50
views
How to return combobox item to main window when item is selected
New to Qt. I'm trying to create a general purpose ComboBox that can be used in multiple situations. This code works when the Save button is pressed. However I would like to dispense with the save ...
1
vote
1
answer
106
views
How to remove a value during combobox change
I have here a listbox that is working fine with the code below.
ListBox1
Updated Whole Code:
Option Explicit
Dim bInit As Boolean ' ** module-scoped variable
Private Sub UserForm_Initialize()
...
0
votes
0
answers
62
views
combo box display value issue
public partial class BlurWindow : Form
{
private Mat inputImg;
public event Notify onNotify;
private int size;
public int BoxSize
{
get { return size; }
set
...
1
vote
1
answer
90
views
How to sort data of Sheet1 using a Combobox with values from Sheet2?
I have here 2 sheets. 1 sheet is for the main data. The other sheet is for the Teams of the Name entries.
Sheet1 (Blanks are on purpose - to see outcome as well if there are blanks)
A
B
C
Name
Date ...
0
votes
1
answer
79
views
conversion from type datarow to type string is invalid
I am using a datatable to fill a combobox and am getting the error about "conversion from type datarow to type string is invalid". What is really confusing is I am using this same exact code ...
0
votes
1
answer
58
views
Unexpected behaviour of tkinter combobox with high-numbered Unicode
I am trying to display unicode characters in a Combobox using Tkinter.
For this example, I don't fill a drop-down list, I only use the entry field.
I already watched stack overflow topics:
how to use ...
0
votes
0
answers
115
views
How can I delete the text of an editable ComboBox when the ComboBox receives the focus from outside, and ignore focus changes within (QMenu/Dropdown)?
A short introduction to clarify the context:
I have an editable CustomCombobox (with a CustomLineEdit). This also contains a QMenu, which opens when the Enter key is pressed.
My problem:
I want the ...
0
votes
1
answer
103
views
Is there a way to make the LineEdit-Part of a Combobox look like the (delegated) Combobox-Items?
I want to change the appearance of a QCombobox including the items and the "LineEdit-Part" to look nice/professional.
The easy part:
The combo box functions both as a search field and for ...
1
vote
1
answer
117
views
WinForms ComboBox items filtering by Text [closed]
I'am trying to use ComboBox in way where user needs minimal effort to choose value or fill some custom text. Needed behavior is:
Open combobox dropdown if user interact ComboBox (tab, click, type ...
0
votes
1
answer
99
views
Show single month and year in combobox in Excel VBA and show listbox value during change
Please bear with me. I know that I already asked this but that was using Access VBA. This time I am using Excel VBA.
I have a sample range of dates below in Column A of Sheet1.
I would like to ...
0
votes
0
answers
68
views
Unable to set SelectedItem on Winforms ComboBox with DataSource
I have the following code to generate a ComboBox
BindingList<Type> types = new([typeof(Foo), typeof(Bar)]);
Type? selectedType = types.SingleOrDefault(t => t.Name == "Bar");
...
0
votes
1
answer
62
views
Select dropdown menu not showing default value when reloading
First of all, let me mention that my knowledge of JavaScript and Vue is quite limited as I am still a student. These are not taught in my classes, so if you notice any significant mistakes in my code, ...
0
votes
0
answers
147
views
Using enum as ComboBox value in WinUI3 doesn't work
Consider this XAML:
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="Theme:" ...