c# - C# WinForms 中 Windows Media Player 元素上的透明按钮
问题描述
我一直在尝试在 Windows Media Player 按钮上设置一个隐藏按钮,但无论我如何尝试,它总是显示为灰色
axWindowsMediaPlayer1.Location = new Point(0, 0);
axWindowsMediaPlayer1.Size = new Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
axWindowsMediaPlayer1.URL = "assets//vid//INTRO//INTRO_START.mp4";
axWindowsMediaPlayer1.Ctlcontrols.play();
axWindowsMediaPlayer1.uiMode = "none";
axWindowsMediaPlayer1.enableContextMenu = false;
startButton.Location = new Point(524, 741);
startButton.Size = new Size(1070, 236);
startButton.FlatStyle = FlatStyle.Flat;
startButton.BackColor = Color.Transparent;
startButton.FlatAppearance.BorderSize = 0;
startButton.Click += StartButton_Click;
this.Controls.Add(startButton);
startButton.BringToFront();
在按钮具有灰色背景的情况下,输出总是看起来相同
解决方案
将背景图像和图像设置都设置为空白 png 那是完整的 alpha
推荐阅读
- c - 在跟随 C 程序时发现错误 - 如何更正
- angular - 在 angular2 中切片使用 videojs 录制的视频
- c# - 给定步骤定义中的表,是否有一种方法可以创建动态实例?
- junit - JaCoCo 覆盖率计算不正确
- office365 - Microsoft Graph API webhook - 将多个帖子发送到我的 notificationUrl
- c# - 包含 [:alnum:] POSIX 字符类的正则表达式与 C# 的字符串不匹配,但在线工具评估正常
- sql - 获取每个月的用户总数,按月和 mysql 中的 user_id 进行分组
- architecture - 由于边缘情况,我们是否应该使聚合根复杂化?
- angular - 从不同的组件角度关闭材料对话框
- javascript - jQuery - 在选择点击时禁用第一个选项,但保持框打开?