如何实现在控件调用的Form传递参数到控件?

webstation 2003-11-03 04:16:37
所调用的Form不属于Container,而属于控件本省
...全文
47 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
davidlv 2003-11-04
  • 打赏
  • 举报
回复
什么意思??
tianmiaohu 2003-11-03
  • 打赏
  • 举报
回复
Ok. Let me try to understand the question. You have a user control, in which you have a couple of forms. So in a VB application you use this user control, you want to pass some parameters to the user control thru the forms.

If that is correct, it is rather simple to achieve that. You can use add a number of public Properties to the form. In the Property's Get and Let/Set methods you can save/retrieve the values to/from private variables. You can also do some other things (Calculations, etc.) with the values in the Get/Let/Set methods.
hcj2002 2003-11-03
  • 打赏
  • 举报
回复
什莫意思?
不太理解!

1,451

社区成员

发帖
与我相关
我的任务
社区描述
VB 控件
社区管理员
  • 控件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧