我试图画一个思维下划线underneith我的头约10-15像素厚。我试过添加一个图片框,然后绘制图片,但它并没有被绘制到屏幕上。有没有更好的方法来做到这一点,或使我的方法工作?如何做粗线下划线或绘制矩形?
谢谢!
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Graphics g = pictureBox1.CreateGraphics();
Pen selPen = new Pen(Color.Black);
g.DrawRectangle(selPen, 0, 0, 700, 15);
g.Dispose();
}
}
}
我搜索了更多的工具箱,我发现了一个RectangleShape事物,它正是我想要的。 – Nathan