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?

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?

6 Feb at 16:17

How to set which control gets the focus on application start

How to set which control gets the focus on application start For a C# Windows Forms application, how do I set the default focus to a given control when my application starts?

21 Sep at 05:45

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...

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 ...

10 Sep at 18:13

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?

4 Dec at 23:28

Need I remove controls after disposing them?

Need I remove controls after disposing them? ### Little explanation - -

6 Jan at 15:56

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 ...

30 Aug at 13:13

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?

23 Nov at 22:17

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 ...

29 Aug at 18:54

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...

20 Jan at 19:34

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.

29 Sep at 17:17

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...

16 Nov at 17:32

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.

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 ...

6 Feb at 12:45

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 ...

17 Dec at 16:49

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. ...

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...

23 May at 10:30

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...

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...

29 Oct at 16:34

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...

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...

12 Aug at 21:15

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...

29 Feb at 08:32

How to create a WPF UserControl with NAMED content

How to create a WPF UserControl with NAMED content I have a set of controls with attached commands and logic that are constantly reused in the same way. I decided to create a user control that holds a...

22 Jul at 22:23

C# WPF how to set location,width and height of the controls programmatically?

C# WPF how to set location,width and height of the controls programmatically? I'm doing my first WPF application. im having problem whereby when my form is maximized or fullscreen, my controls wont re...