tagged [controls]
How to disable the 'Select All' button of a DataGrid
How to disable the 'Select All' button of a DataGrid Is it possible to disable the "Select all" button in the upper left corner of the WPF DataGrid?
- Modified
- 15 Jun at 13:8
How can I find WPF controls by name or type?
How can I find WPF controls by name or type? I need to search a WPF control hierarchy for controls that match a given name or type. How can I do this?
Exposing events of underlying control
Exposing events of underlying control I have a combobox in a custom control. How can I expose specific events from it such as SelectedIndexChanged or KeyPress, etc to anyone/thing implementing my cust...
- Modified
- 22 Jul at 15:40
Can you recommend an ASP.NET control library?
Can you recommend an ASP.NET control library? Do you have a good experience with a control library? Something that is kind of robust, well documented, consistent (across different controls) and quite ...
C# generics usercontrol
C# generics usercontrol I would like to define the following control: The problem is that the designer can't resolve this. Is there a workaround to this issue?
- Modified
- 4 Dec at 23:28
Control difference between Hide() and Visible?
Control difference between Hide() and Visible? I was wondering about the difference between using a Control’s `Hide()` method compared to setting the `Visible` property to false. When would I want to ...
Panel clear everything
Panel clear everything I would like to reset a panel to its initial state. For example, I set an image as background, and I draw graphics on a part of the panel. I have to clear everything. How?
Trigger control's event programmatically
Trigger control's event programmatically Assume that I have a WinFoms project. There is just one button (e.g. `button1`). The question is: is it possible to trigger the `ButtonClicked` event via code ...
how to handle programmatically added button events? c#
how to handle programmatically added button events? c# I'm making a windows forms application using C#. I add buttons and other controls programmatically at run time. I'd like to know how to handle th...
How to get all children of a parent control?
How to get all children of a parent control? I'm looking for an code example how to get all children of parent control. I have no idea how do it.
Why is the control inaccessible due to its protection level?
Why is the control inaccessible due to its protection level? I'm trying to access a control's text property from program.cs and it says that it is inaccessible due to protected level. How can I fix th...
How to get RTF from RichTextBox
How to get RTF from RichTextBox How do I get the text in RTF of a `RichTextBox`? I'm trying to get like this, but the property does not exist.
- Modified
- 21 Jul at 12:45
What is the main difference between ReadOnly and Enabled?
What is the main difference between ReadOnly and Enabled? In [Windows Forms](http://en.wikipedia.org/wiki/Windows_Forms) controls, there are two properties: and . What is the difference between these ...
How to create a Circular Style ProgressBar
How to create a Circular Style ProgressBar I need help on implementing a circular progress bar like this: ![CircularProgressbar](https://i.stack.imgur.com/91s7z.jpg) How should I implement the Circle ...
- Modified
- 17 Dec at 16:49
How do I dispose all of the controls in a panel or form at ONCE??? c#
How do I dispose all of the controls in a panel or form at ONCE??? c# > [Does Form.Dispose() call controls inside's Dispose()?](https://stackoverflow.com/questions/3671013/does-form-dispose-call-cont...
WPF radio button with Image
WPF radio button with Image I have to create something similar to the picture. If one of the button is clicked the others should become darker. Thanks a lot! That's what I need [](https://i.stack.imgu...
- Modified
- 15 Aug at 10:2
[WPF]How to draw a grid on canvas?
[WPF]How to draw a grid on canvas? How to draw the following chart as a background on custom canvas inherited from Canvas - system ui element? Thanks for any useful links. ![Grid](https://i.stack.imgu...
- Modified
- 29 Oct at 16:34
Validating an ASP.NET user control from its parent page
Validating an ASP.NET user control from its parent page I have an asp.net page with a button. This button generates and inserts a user control into the page, so many controls could exist on one page. ...
- Modified
- 24 Sep at 08:4
How to add an event to a UserControl in C#?
How to add an event to a UserControl in C#? I have a UserControl which contains 3 labels. I want to add an event for it, which occurs when the text of one of the labels changed. I am using Visual Stud...
- Modified
- 8 Feb at 07:1
How to add controls dynamically to ASP.NET form?
How to add controls dynamically to ASP.NET form? I do not know how to add controls dynamically to the form using C# .net. Can anyone help me? I know this with vb.net but I need to know the syntax in C...
How to calculate the sum of the datatable column in asp.net?
How to calculate the sum of the datatable column in asp.net? I have a DataTable which has 5 columns: - - - - - The DataTable contains 5 rows. How can I show the sum of the Amount Column in a Label Con...
- Modified
- 29 Feb at 08:32
List View C# stay selected
List View C# stay selected I have a list view that after a double click, a record opens a new form to show the details, but the record in the list view lost the "selection".... How do I know which rec...
How to drag a UserControl inside a Canvas
How to drag a UserControl inside a Canvas I have a Canvas in which user can add UserControl subclasses containing a form. User should be able to drag these UserControl around the Canvas. What's the be...
- Modified
- 30 Mar at 08:25