开发者

ActionLists for Windows.Forms in runtime

开发者 https://www.devze.com 2023-04-12 17:33 出处:网络
I tried those sites http://www.codeproject.com/KB/miscctrl/actionlist.aspx http://www.codeproject.com/KB/miscctrl/CradsActions.aspx

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

精彩评论

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

关注公众号