永发信息网

vb.net中怎么在picturebox控件上显示文本?

答案:2  悬赏:50  手机版
解决时间 2021-01-30 11:51
  • 提问者网友:心牵心
  • 2021-01-29 16:07
您好,见到你在百度知道里回答的问题如下连接: http://zhidao.baidu.com/question/146347007.html vb.net
我按照你的代码,在xp环境下,vb.net2005中调试通过
现在,我想在wince5.0环境下使用你的代码,在最后一行代码处提示错误:
“值不在预期的范围内”
不知你是否能够给出好的建议?
打扰之处,敬请原谅
最佳答案
  • 五星知识达人网友:往事埋风中
  • 2021-01-29 16:23
dim cx ,cy as long
cx=picturebox.currentx
cy=picturebox.currenty

picturebox.print "hhhhhhhhhhhhhhhhhhhhhhhhhhh"
全部回答
  • 1楼网友:刀戟声无边
  • 2021-01-29 17:27

vb.net要在picture中label显示透明色,如下示例:

dimlabel_1asnewlabel()

withlabel_1

.height=20

.width=100

.text="动态添加label控件."

.left=9

.top=9

.backcolor=color.transparent

endwith

me.picturebox1.controls.add(label_1)

如图你可以看到效果.

在代码任意处加上事件就行了

privatesublabel_1_mousemove(byvalsenderasobject,byvaleassystem.windows.forms.mouseeventargs)handleslabel_1.mousemove

.....

....

endsub

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯