Drawing a line in Winforms

后端 未结 5 732
无人及你
无人及你 2020-12-19 07:36

I am having trouble drawing a line within a group box in a simple windows form.

here is my code:

public partial class Form1 : Form
    {
        publ         


        
5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-19 08:27

    I'm not sure if something else is going on, but you should draw the line on the GroupBox's Paint event, not the Form's.

提交回复
热议问题