本文介绍了使用C Sharp在MenuStrip中动态添加MenuItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,
我正在使用c Sharp在我的项目中添加菜单栏..由于我是新用户,所以我对c Sharp的了解不多..请帮我动态添加菜单项在菜单栏中...

我只想在我已经在表单中添加的菜单栏中动态添加菜单项..

问候,
Hassan Tariq

Hi Dear,
I am using c sharp to add menustrip in my project..i did not have much knowledge of c sharp as i am a new user..please do help me out regarding adding the menu items in my menustrip dynamically...

All i want is that to add menuitems dynamically in my menustrip which i''ll already added in my form..

Regards,
Hassan Tariq

推荐答案

menuStrip1.Items.Add(new ToolStripMenuItem(...));



Google是您的朋友.



Google is your friend.



这篇关于使用C Sharp在MenuStrip中动态添加MenuItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 09:58