Skip to content

Commit f3512ad

Browse files
author
KB Bot
committed
Added new kb article disable-video-recording-button-radwebcam-winforms
1 parent abbfbd2 commit f3512ad

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
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.
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
8+
res_type: kb
9+
ticketid: 1685265
10+
---
11+
12+
## Environment
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>
26+
27+
## 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+
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?
34+
35+
## Solution
36+
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+
38+
```csharp
39+
radWebCam.WebCamElement.ToggleRecordingButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
40+
```
41+
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.
43+
44+
## See Also
45+
46+
- [RadWebCam Overview](https://docs.telerik.com/devtools/winforms/controls/radwebcam/overview)
47+
- [Customizing RadWebCam UI](https://docs.telerik.com/devtools/winforms/controls/radwebcam/customizing-appearance)

0 commit comments

Comments
 (0)