填写表格 [英] draw in form

查看:86
本文介绍了填写表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个组合框.在那我插入了三角形和圆形之类的项目.如何在表格中绘制这些图?

I created one combobox. In that I inserted the items like triangle and circle How can i draw these diagrams in the form?

推荐答案

处理表格的Paint事件,您将获得一个PaintEventArgs参数,其中包含可用于在表单上绘制的Graphics项.
MSDN示例 [
Handle the Paint event for the form, and you will get a PaintEventArgs parameter which contains a Graphics item you can use to draw on the form.
MSDN example[^] of how to do it (it uses the mouse to select the size, but the principle is the same).


这篇关于填写表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆