Skip to main content
The 2024 Developer Survey results are live! See the results

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.

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(...
Ivan's user avatar
  • 9
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....
spinjector's user avatar
  • 3,381
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 ...
Ben Booton's user avatar
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: <...
Ludovic Wagner's user avatar
-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 ...
Stefano Castro's user avatar
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 ...
Ludovic Wagner's user avatar
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 ...
PizzaCaviar's user avatar
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 ...
Hack.Sign's user avatar
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 ...
Hack.Sign's user avatar
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 ...
Monset's user avatar
  • 647
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}}&...
06luki06's user avatar
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 ...
06luki06's user avatar
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, ...
06luki06's user avatar
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 ...
Ian Noriega Nuñez's user avatar
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 ...
RyanCode_4012's user avatar

15 30 50 per page
1
2 3 4 5
688