问题描述
我正在尝试创建一个无边界的窗体应用程序。
这里是我设法做的东西非常简单,我想要的步骤: p>
- 首先,将边框样式设置为无。
- 然后添加一个将用作
- First, I set the form border style to none.
- Then added an image that will serve as the exit button for the application.
以下是我到目前为止所做的图片:
当我运行应用程序时,我想知道为什么我不能在屏幕上移动窗口或应用程序。
有关如何解决这个问题的任何想法?
示例代码和项目是用VB.Net编写的,但是这样解决了这个问题,
它也解决了调整大小问题,如果你有兴趣。
编辑
此外,这里是我用来阅读关于将VB转换为C#的网站。
I'm trying to create a borderless win forms app.
Here's the steps on how I managed to make something really simple that does what I want:
Here is the image of what I've done so far:
When I run the application, I wonder why I can't move the window or the app around the screen.
Any ideas on how I can get through with this problem?
The example code and project are written in VB.Net but this solved this problem for me after doing a bit of reading on comparing keywords between the two languages I had the code written for C#.
Moving and Resizing Borderless WinForms
It also solves the resizing issue as well if you're interested.
EDIT
Also, here is the website I used to read about converting VB to C#.
这篇关于如何使一个无边界winforms应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!