Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在表格上有图纸,组框将它们隐藏起来。它还可以防止激活表单的单击事件。所以我尝试用 alpha 元素设置背景颜色完全透明,然后我可以看到画作,但事件仍然不起作用。是否有可能组框根本没有填充,只有一条外线?
i think you are trying to draw on the form and want to have inside the boundaries of a groupbox, you should try to draw on groupbox instead of form.
groupbox
Graphics groupBox = groupBox1.CreateGraphics(); //Graphics for GroupBox