Questions tagged [user-controls]
A UserControl is a separate, reusable input control that allows a user to interact with an application. User controls can be buttons, checkboxes, input text boxes, mice, keyboards, etc.
user-controls
10,306
questions
0
votes
0
answers
14
views
Textbox User Control with custom property to binding not working [duplicate]
I have a user control made up of a TextBox "txtClientCode" inside a stack panel control and it has a property called Value
public string Value
{
get { return (string)GetValue(...
0
votes
0
answers
61
views
How can the properties of constituent controls in a UserControl be made available for use in ApplicationSettings?
How can the properties of constituent controls in a VB Windows Forms UserControl be made available for use in ApplicationSettings?
I created a UserControl with a Textbox. I would like to make TextBox1....
0
votes
0
answers
29
views
Winforms on .NET 8: why isn't tab index working with user controls?
I'm working with Winforms in .NET 8.0. I've created a number of user controls which work well in every way, except for the tab index.
I've tried setting the tab index at the form level and then at the ...
0
votes
0
answers
28
views
WPF style trigger of usercontrol not propagated
I built a CustomDataGrid usercontrol based on the DataGrid where I define the DataGridCell style trigger to alternate the background color of odd vs. even selected cells as follow:
<...
-1
votes
0
answers
16
views
how to know who's connected to the database
Good morning to everybody. I'm working around this matter. Hereinafter is my code. The problem consists of the list box Elenco5 on Form UTEEDB having 3 columns. Now I would like to split data in each ...
0
votes
1
answer
94
views
WPF how to extend UserControl Resource Style
I built a UserControl based on a DataGrid in order to add filtering which I don't detail. It is quite complex, but works well (I'll have to figure out how to remove lots of code-behind later on).
I ...
0
votes
1
answer
36
views
Delete new sheets script
I created a Google Sheet that functions as a timetable for a non-profit organisation I volunteer at.
Each sheet serves as a weekly timetable. Anyone with access to the link can edit the document so ...
0
votes
0
answers
48
views
Implementing a Custom ComboBox into a DataGridView Column
I recently created a custom combo box with a button and now I am trying to create a data grid view column that uses that control. I have tried a few different methods including trying to build the new ...
1
vote
1
answer
67
views
Adding a button to a ComboBox and resizing the inner TextBox editing control
I am attempting to make a custom combo box. I want to have a button inside the combobox so the user can add items to its data source.
I know I need to use WndProc in order to get the inner textbox but ...
0
votes
0
answers
31
views
Windows form and user control not working together
Here's the windows forms setup I have
Issue I have is that when I click Expand All / Collapse All buttons my task progresses are not changing size, but when I click Expand / Collapse directly on the ...
0
votes
1
answer
42
views
WPF - MaterialDesign for XAML
I have two separate solutions: Solution A defines a custom UserControl, as you can see here:
<TextBox BorderBrush="{Binding ValueFG, RelativeSource={RelativeSource AncestorType=UserControl}}&...
0
votes
0
answers
28
views
Custom UserControls + MVVM - WPF - Sending written value back to parent [duplicate]
I created some DependencProperties for my custom UserControl. The "Read-Values" get inherited from the parent, but if I write anything into my TextBox, it won't get "send" back to ...
0
votes
1
answer
40
views
Custom UserControls + MVVM - WPF / Prism-Framework [duplicate]
Currently, I am refactoring an application, where we have lots of duplicated XAML code. I want to use custom UserControls instead. I did a tutorial, on how to create those, but now I am at a point, ...
0
votes
0
answers
54
views
How to hide or eliminate range markers in WPF slider
I am making a slider user control. I need the IsSelectionRangeEnable = "true" but I do not want the triangular markers that appear on the slider (shown in the image).
Fragment of slider with ...
0
votes
1
answer
53
views
c# winforms. Problem when storing and calling controls
So I have two forms, a parent form and a child form, and a custom control.
The parent form has an empty list of the custom controls and a button that calls the child form.
The child form has a button ...