18,158 questions
0
votes
1
answer
45
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 ...
0
votes
4
answers
209
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 ...
1
vote
2
answers
90
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
201
views
How does WinForms manage to display ⅓ 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 ⅓ 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
vote
1
answer
183
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
20
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
181
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
152
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
135
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
108
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
votes
1
answer
62
views
Is there a way to display Integer values in JavaFx ComboBox with two digits?
I'm implementing a kind of clock in JavaFx. I have 2 combo boxes with integer values to select a time, one representing hours and the other minutes.
Is there a simple way of displaying the selected ...
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
0
answers
29
views
PowerApps ComboBox on Collection
I have a gallery from which I load all items into a collection when any value changes. One of the items is a Person ComboBox. I have gotten the record into the Collection. Eventually, I need to save ...
0
votes
1
answer
71
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.
1
vote
1
answer
555
views
With Power Apps, How to populate a Combo box with the value of another Combo box
I have a problem with my Power Apps project. On the same screen, I have 2 forms from 2 SharePoint lists.
When I select a Client name, I automatically display the details (address, contact, ...). This ...
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
108
views
When I populate a combobox in MS Access, the list is blank
I am trying to populate a combobox based on a filtered list from a table, using this code:
Private Sub Form_Load()
Me.cmbboxStaffName.RowSource = "SELECT StaffName FROM tblStaff WHERE ...
0
votes
1
answer
88
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
0
answers
40
views
Keep page focused while combobox is opened
I'm using a vaadin combobox that is set to be open on page load, so users can see all the options when they are logged in. However, because the combobox is opened they have to click the page twice to ...
0
votes
1
answer
51
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
65
views
Adding new VBA userform combobox values to a sheet
I'm still fairly new to VBA so I am struggling to work this out...
I have a Userform with a variety of inputs including some comboboxes using lists from the excel sheet. What I would like to do is if ...
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
44
views
TTK - Don't apply current style for single widget (in own dialog window)
I have the following problem. In my application I use 'black' theme from ttkthemes, with some additional changes. I also uses dialogs for getting values. I also have created my own dialog with ttk....
0
votes
0
answers
66
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
0
answers
70
views
When I click on ComboBox I get protected data in the dropdown list. I want that data not to be masked
Here is my program, completed in VS2015 with Visual C # 2015 and .NET Framework 4.7.2.
I want to mask, ie. to protect my program from hacking.
I want to hide the names like Form1,... variable names.......
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
0
answers
26
views
How to update the combo box value for multiple rows when one combo box value changes in a data grid?
I'm trying to create a Sheet generator in Revit, using Pyrevit Add in.
So by using Ironpython and WPF, I managed to create a datagrid with multiple combobox columns.
However, for the tool to be ...
0
votes
1
answer
86
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 ...
1
vote
0
answers
33
views
PyQt5 QComboBox: how does the keyboard input work?
I am using PyQt5 QComboBoxes in an application of mine. The ComboBox is filled with Strings which are alphabetically sorted.
I realized that I can move the current index of the ComboBox by typing ...
0
votes
1
answer
66
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
1
answer
42
views
How to make choices of magicgui's `ComboBox` dependent on current value of other `ComboBox`?
I want to create a magicgui widget that contains two ComboBox widgets. The choices of the second ComboBox should depend on the current value of the first ComboBox. How can I accomplish that?
I know ...
0
votes
0
answers
117
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
768
views
Person combobox in Power Apps - Default selection display issues
I have a SharePoint Online list with a Person column. I have created a Power Apps form to enter the data because I would like to be able to set up a default value for the field (the user should be ...
0
votes
1
answer
108
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
41
views
How can I loop thru combo boxes and set the value? My code produces the error "An error occurred: 'str' object has no attribute 'set' "
I have a set of combo boxes that the user will use to set parameters in a Ham radio. I am trying to 'set' the default values for each combo box when the user asks for a new clean file.
I have saved a ...
1
vote
1
answer
120
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 ...
1
vote
1
answer
49
views
Excel automatically renames back ActiveX controls when reopening XLSM spreadsheet file
I had added an ActiveX control (in my case, it was a ComboBox, but it might as well be a button or something else) to a spreadsheet, and named it Analysis1_FileAction_ComboBox. Later I renamed it to ...
0
votes
1
answer
106
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
1
answer
58
views
ComboBox functionality
I want to use a combobox to select items from a CSV file. When I type a string into the combobox, the dropdown should display the elements that are matching what I type. If any part of a string from ...
0
votes
0
answers
75
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
0
answers
33
views
The active x comboboxes in my office-365 excel worksheet changing size randomly when screen changes, or I open the workbook from other computer
I have a macro enabled Excel 365 workbook (.xlsm) and I have a problem that I cannot fix since months. I have read several entries on different platforms but none of them fixed my problem:
I am using ...
0
votes
1
answer
64
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
1
answer
71
views
VBA ActiveX ComboBox causing excel to crash
I have a table within a worksheet that is designed to help Career Managers plot the future roles that employees will hold. It has columns to record each employee’s current position details and the ...
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:" ...
2
votes
1
answer
96
views
ComboBox value is null if select same item with control key pressed
I have an issue with ComboBox when I select same item with control key pressed . This is what happens :
as you can see in the gif , combobox change values normally , but when control key is pressed , ...