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.
我想在 Visual C++ Forms PictureBox 中绘制黑线来绘制一些信息。我该怎么做呢?可以使用 PictureBox 来执行此操作还是应该使用其他东西?
要在任何 WinForms 控件上绘图,请处理Paint事件,获取Graphics对象,然后调用DrawLine或其他方法来满足您的需求。
MSDN上有一个很好的例子。