无法更改ActiveX控件属性值 [英] Can't change ActiveX Control Properties Value

查看:175
本文介绍了无法更改ActiveX控件属性值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在尝试使用Visual Studio 2012进行ActiveX控件。我有1个方法和几个定制财产。但我不能改变财产的价值。我尝试使用Get Set函数或更改我创建的DummyForm来测试控件。我用这个
代码来修改我的财产,但没有任何的变化:


axBioCapture1.FormNo ="测试英寸;

label1.Text = axBioCapture1。 FormNo;



有人可以帮助我吗?


谢谢


Famamu

解决方案

样品为一个C ++ ATL基于ActiveX控件代码是在
https://code.msdn.microsoft.com/windowsdesktop/ATLActiveX-9fcb47e9


我希望你觉得它很有帮助。


Hi all,

I'm trying to make ActiveX control using Visual Studio 2012. I got 1 Method and several custom property. But I can't change the value of the property. I tried using Get Set function or change on the DummyForm that I create to test the control. I use this code to modify my property but nothing's change:

axBioCapture1.FormNo = "test";
label1.Text = axBioCapture1.FormNo;

can somebody help me?

Thanks

Famamu

解决方案

Sample code for a C++ ATL based Activex control is at https://code.msdn.microsoft.com/windowsdesktop/ATLActiveX-9fcb47e9

I hope you find it helpful.


这篇关于无法更改ActiveX控件属性值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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