开发者

ActionLists for Windows.Forms in runtime

I tried those sites

http://www.codeproject.com/KB/miscctrl/actionlist.aspx

http://www.codeproject.com/KB/miscctrl/CradsActions.aspx

to create actionlist, it work well if I use bu开发者_如何学Cttons in design time, but creating button in runtime I cannot assign action to it , I cannot do the same step in the image ,in code behind , I cannot find this property

ActionLists for Windows.Forms in runtime

any idea how to do that


At runtime you need to use the following code,

this.actionList1.SetAction(this.toolStripMenuItem1, this.actNew);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜