几何尺寸与公差论坛

 找回密码
 注册
查看: 675|回复: 0

【转帖】vb6 add-in multiline textbox in taskpane

[复制链接]
发表于 2009-4-12 22:47:45 | 显示全部楼层 |阅读模式
vb6 add-in: multiline textbox in taskpane
hi everybody,
i coded an addin which creates a taskpane view. the taskpane view is a vb6 activex control. it contains several text boxes, combo boxes and buttons.
now i tried adding a multiline textbox to the control. now when i use my addin the control works. except that pressing the return key doesn't create a new line. i can write letters, numbers, symbols - you name it. but i cannot create new lines.
pressing return doesn't call any event handlers (i tested keyup, keydown and keypress). but return work for pressing buttons and selecting items from a combo box.
how can i make a multiline textbox react to the return key?
regards,
simon
btw: this behaviour occurs in solidworks 2007 sp5, 2008 sp4 and 2009 sp1
i did some more tests:
a multiline richtextbox works as long as you only use the return key. as soon as you type a letter the return key will no longer work.
try
ctrl + enter
tried that long ago. didn't help.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 18:41 , Processed in 0.034598 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表