Windows窗体中的菜单条 [英] menustrip in windows form

查看:113
本文介绍了Windows窗体中的菜单条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我正在制作一个基于窗口的应用程序,其中有一个名为"frmMain.vb"的窗口形式,我使用了两个控件
1-menustrip
请告诉我当我单击menuStrip项时如何指定另一个窗口形式.

我使用的2秒钟控件是dataGridView.
当我单击菜单栏中的该项目时,我会在该网格视图中打开该窗口,请告诉我如何为该问题编写代码.
我是Window应用程序的新手

谢谢和问候
subiya

解决方案

只需双击菜单栏项
在设计"视图中.它将提供
您编写代码的方式.或者说它会打开
在代码"窗口中.您将在此处找到menuItemName_clicked事件
在此下面编写代码以打开您的表单为

FormNameToOpen.show()


对于第二个查询.您必须了解
首先使用DataGridView,为此,请单击此处[ ^ ].

为了全面了解如何使用Windows
应用程序,您必须访问此链接[^ ]
或Google YourSelf.
玩得开心!


hi i m making a window based application in which i have a window form named as"frmMain.vb" in this form i used two controls
1-menustrip
plesase tell how to accsess the another window form when i click the menuStrip item.

2-second controle i used is dataGridView.
i wand when i click the item in the menustrip that window from will be open in that grid view please tell me how to code for this problem.
i m new in window application

thanks and regard
subiya

解决方案

just Double Click your Menu Strip item
in the Design View .It will provide
you the Way where to write your Code.Or say it will open
the Code window .You will Find there menuItemName_clicked Event
Under this Write the code to open your Form as

FormNameToOpen.show()


And For your Second Query .You must Understand the
Usage Of DataGridView First So for this Click here[^].

And For the Full understanding to how to work with Windows
application You must visit this Link [^]
Or Google YourSelf.
Have Fun !


这篇关于Windows窗体中的菜单条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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