|
1 | 1 | --- |
2 | 2 | title: Disabling Video Recording Button in RadWebCam for WinForms |
3 | | -description: Learn how to hide the video recording button in RadWebCam for WinForms to utilize only the snapshot feature. |
| 3 | +description: Learn how to disable video recording button in RadWebCam for WinForms to utilize only the snapshot feature. |
4 | 4 | type: how-to |
5 | | -page_title: How to Hide the Video Recording Button in RadWebCam for WinForms |
6 | | -slug: disable-video-recording-button-radwebcam-winforms |
7 | | -tags: radwebcam, winforms, videorecording, ui, customization |
| 5 | +page_title: How to Disable Video Recording in RadWebCam |
| 6 | +slug: webcam-disable-video-recording |
| 7 | +tags: webcam, winforms, videorecording, ui, customization |
8 | 8 | res_type: kb |
9 | 9 | ticketid: 1685265 |
10 | 10 | --- |
11 | 11 |
|
12 | 12 | ## Environment |
13 | 13 |
|
14 | | -<table> |
15 | | -<tbody> |
16 | | -<tr> |
17 | | -<td>Product</td> |
18 | | -<td>RadWebCam for WinForms</td> |
19 | | -</tr> |
20 | | -<tr> |
21 | | -<td>Version</td> |
22 | | -<td>2024.3.924</td> |
23 | | -</tr> |
24 | | -</tbody> |
25 | | -</table> |
| 14 | +|Product Version|Product|Author| |
| 15 | +|----|----|----| |
| 16 | +|2025.1.211|RadWebCam for WinForms|[Nadya Todorova](https://www.telerik.com/blogs/author/nadya-karaivanova)| |
26 | 17 |
|
27 | 18 | ## Description |
28 | | -I want to disable the video recording button in the RadWebCam control. My application only requires the snapshot feature, and the video recording option is unnecessary for my use case. |
29 | 19 |
|
30 | | -This knowledge base article also answers the following questions: |
31 | | -- How can I hide the video recording button in RadWebCam? |
32 | | -- Is it possible to use RadWebCam for snapshots only? |
33 | | -- Can I customize the RadWebCam UI to remove the video recording functionality? |
| 20 | +This article explains how to disable video recording in RadWebCam and use only snapshots. |
34 | 21 |
|
35 | 22 | ## Solution |
36 | 23 | To disable the video recording button in RadWebCam and restrict the control to only use the snapshot feature, set the visibility of the recording button to `Collapsed`. This action hides the recording button from the UI. |
37 | 24 |
|
38 | 25 | ```csharp |
| 26 | + |
39 | 27 | radWebCam.WebCamElement.ToggleRecordingButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; |
40 | | -``` |
41 | 28 |
|
42 | | -By applying this code, the RadWebCam control will continue to function, but without displaying the video recording button, effectively limiting its use to taking snapshots. |
| 29 | +``` |
43 | 30 |
|
44 | 31 | ## See Also |
45 | 32 |
|
|
0 commit comments