这个问题在这里已经有了答案:HowtoDrawaRoundedRectanglewithWinForms(.NET)?(6个答案)关闭4年前。我正在使用此代码制作我的表单(FormBorderStyle=none)具有圆角边缘:[DllImport("Gdi32.dll",EntryPoint="CreateRoundRectRgn")]privatestaticexternIntPtrCreateRoundRectRgn(intnLeftRect,//x-coordinateofupper-leftcornerintnTopRect,//y-coordinateofupper-lef