# SetSharingToolbarVisibility setting to false doesn't work on first share

**URL:** <https://devforum.zoom.us/t/setsharingtoolbarvisibility-setting-to-false-doesnt-work-on-first-share/77828>\
**Category:** Windows\
**Created:** [October 24, 2022, 4:56pm UTC](https://devforum.zoom.us/t/setsharingtoolbarvisibility-setting-to-false-doesnt-work-on-first-share/77828 "2022-10-24T16:56:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan.phillips](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@ryan.phillips](https://devforum.zoom.us/u/ryan.phillips)\
**Post date:** [October 24, 2022, 4:56pm UTC](https://devforum.zoom.us/t/setsharingtoolbarvisibility-setting-to-false-doesnt-work-on-first-share/77828/1 "2022-10-24T16:56:17Z")

</div>

**Description**  
When setting SetSharingToolbarVisibility to false the sharing toolbar still shows when sharing for the first time, but is hidden when sharing for the second time in the same meeting.

**Which Windows Meeting SDK version?**  
5.11.11.8475

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Init SDK
2. call IMeetingConfiguration::SetSharingToolbarVisibility(false);
3. Start a meeting
4. Start sharing a second camera
5. Toolbar is still visible

**Screenshots**  
First time sharing:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/5/e5a8a29a6939447296fd55346ffadd1ca8af376a.png)

Second time sharing:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/d/9db10bca5be6f887364129c421b35cbda708e4c0.png)

**Troubleshooting Routes**  
I found no other posts about this specific issue. I tried it several times and the result was always the same. I tried calling SetSharingToolbarVisibility in several different places in my code with no change.

**Device (please complete the following information):**

- Device: HP ProBook 650 G5
- OS: Windows 10 Pro Version 21H2

**Additional context**  
None

---

<div class="post-metadata">

**Author:** ![ryan.phillips](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@ryan.phillips](https://devforum.zoom.us/u/ryan.phillips)\
**Post date:** [October 24, 2022, 6:29pm UTC](https://devforum.zoom.us/t/setsharingtoolbarvisibility-setting-to-false-doesnt-work-on-first-share/77828/2 "2022-10-24T18:29:08Z")

</div>

I got the same result on Windows SDK version 5.12.2.9319.

---

<div class="post-metadata">

**Author:** ![ryan.phillips](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@ryan.phillips](https://devforum.zoom.us/u/ryan.phillips)\
**Post date:** [November 22, 2022, 1:57pm UTC](https://devforum.zoom.us/t/setsharingtoolbarvisibility-setting-to-false-doesnt-work-on-first-share/77828/3 "2022-11-22T13:57:12Z")

</div>

commenting to keep this alive. could really use some form of response here.

---

<div class="post-metadata">

**Author:** ![precisao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/precisao/32/31723_2.png) [@precisao](https://devforum.zoom.us/u/precisao)\
**Post date:** [November 24, 2022, 2:59pm UTC](https://devforum.zoom.us/t/setsharingtoolbarvisibility-setting-to-false-doesnt-work-on-first-share/77828/4 "2022-11-24T14:59:46Z")

</div>

Hi Ryan, we got the same experience here.

The toolbar is still shown when we call IMeetingConfiguration::SetSharingToolbarVisibility(false) inside IAuthServiceEvent::onAuthenticationReturn, and call IMeetingUIController::ShowSharingToolbar(false) before and after start sharing. If we stop and start sharing again (in our case calling ShowSharingToolbar before and after sharing) then this second time the toolbar is hidden.

Also, we still see the green border after calling IMeetingUIController::ShowSharingFrameWindows(false) before or after start sharing.

---

<div class="post-metadata">

**Author:** ![ryan.phillips](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@ryan.phillips](https://devforum.zoom.us/u/ryan.phillips)\
**Post date:** [December 6, 2022, 2:11pm UTC](https://devforum.zoom.us/t/setsharingtoolbarvisibility-setting-to-false-doesnt-work-on-first-share/77828/5 "2022-12-06T14:11:36Z")

</div>

I think I’m going to try using a custom UI and see if that can work around it. I’m hiding everything anyway. If it works I’ll reply again.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 6, 2023, 12:11am UTC](https://devforum.zoom.us/t/setsharingtoolbarvisibility-setting-to-false-doesnt-work-on-first-share/77828/6 "2023-01-06T00:11:46Z")

</div>

Closed on January 6, 2023, 12:11am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
