VB2005:用户控制可以“触发”您的主窗体吗? [英] VB2005: Can a usercontrol 'trigger' your main form ?

查看:61
本文介绍了VB2005:用户控制可以“触发”您的主窗体吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我有一个包含两个项目的解决方案

- 主要项目包含一个statusstrip的主项目

- 包含用户控件的第二个项目。


我已经将usercontrol添加到我的主表单中,所有工作都很完美...


我的用户可以控制吗? 点燃一个事件,允许它改变主要形式's statusstrip

的价值?


-

Filip
http://www.ww2airborne.net/

第101空降师的官方网站 - 第463次PFA

skype:airborne463pfa-fiwi

[很重要,但很重要,但是做个好事更重要!]

------------------------------- ---------------------------------

解决方案

"尖叫老鹰101 < se ********* @ online.pleasewrote in

news:47 ********************** *@news.scarlet.nl:


>

我的usercontrol可以''触发事件''允许它更改

主要表格'statusstrip上的价值?



是的。如果您的主要表格挂钩到活动中。


垃圾邮件捕手 < sp ********** @ rogers.comschreef在bericht

新闻:Xn ******************** **************@127.0.0。 1 ...


>"尖叫老鹰101 < se ********* @ online.pleasewrote in

news:47 ********************** *@news.scarlet.nl:


>>
我的usercontrol可以''触发事件''允许它更改
主要形式'statusstrip上的值?



是的。如果您的主要表单挂钩到事件中。



谢谢,那是'promessing,

不幸的是我不够聪明,不知道如何,我的理由

这里有问题...

有人知道如何执行此操作吗?

-

菲利普
http://www.ww2airborne.net/

第101空降师的官方网站 - 第463次PFA

skype:airborne463pfa-fiwi

[很重要,但重要的是它更重要很好!]

-------------------------------------- --------------------------


"尖叫老鹰101 < se ********* @ online.pleaseschrieb


" Spam Catcher" < sp ********** @ rogers.comschreef在bericht

新闻:Xn ******************** **************@127.0.0。 1 ...


"尖叫老鹰101 < se ********* @ online.pleasewrote in

news:47 ********************** *@news.scarlet.nl:


>

我的usercontrol可以''触发事件''允许它更改

主要表格'statusstrip上的价值?



是的。如果您的主要表单挂钩到事件中。



谢谢,那是'promessing,

不幸的是我不够聪明,不知道如何,

我的问题在这里......

有人知道如何执行此操作吗?


http://msdn2.microsoft.com/en-us/lib...w2(VS.71).aspx
http://msdn2.microsoft.com/en-us/lib...7y(VS。 71).aspx
http://msdn2.microsoft.com/en-us/lib...az(VS.71).aspx

Armin


Hi,

I have a solution containing two projects
- main project with main form containing a statusstrip
- second project containing a usercontrol.

I have added the usercontrol to my main form, all works perfect...

Can my usercontrol ''fire an event'' which allows it to change the value(s) on
the main form''s statusstrip ?

--
Filip
http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
[It''s nice to be important, but it''s more important to be nice!]
----------------------------------------------------------------

解决方案

" Screaming Eagles 101" <se*********@online.pleasewrote in
news:47***********************@news.scarlet.nl:

>
Can my usercontrol ''fire an event'' which allows it to change the
value(s) on the main form''s statusstrip ?

Yup. Provided your main form hooks into the event.


"Spam Catcher" <sp**********@rogers.comschreef in bericht
news:Xn**********************************@127.0.0. 1...

>" Screaming Eagles 101" <se*********@online.pleasewrote in
news:47***********************@news.scarlet.nl:

>>
Can my usercontrol ''fire an event'' which allows it to change the
value(s) on the main form''s statusstrip ?


Yup. Provided your main form hooks into the event.

Thanks, that''s promessing,
unfortunately I''m not smart enough to find out how, the reason for my
question here...
Does one have the knowledge how to perform this ?
--
Filip
http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
[It''s nice to be important, but it''s more important to be nice!]
----------------------------------------------------------------


" Screaming Eagles 101" <se*********@online.pleaseschrieb

"Spam Catcher" <sp**********@rogers.comschreef in bericht
news:Xn**********************************@127.0.0. 1...

" Screaming Eagles 101" <se*********@online.pleasewrote in
news:47***********************@news.scarlet.nl:

>
Can my usercontrol ''fire an event'' which allows it to change the
value(s) on the main form''s statusstrip ?

Yup. Provided your main form hooks into the event.


Thanks, that''s promessing,
unfortunately I''m not smart enough to find out how, the reason for
my question here...
Does one have the knowledge how to perform this ?


http://msdn2.microsoft.com/en-us/lib...w2(VS.71).aspx
http://msdn2.microsoft.com/en-us/lib...7y(VS.71).aspx
http://msdn2.microsoft.com/en-us/lib...az(VS.71).aspx
Armin


这篇关于VB2005:用户控制可以“触发”您的主窗体吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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