Class MDIChildForm ....... 'set mnuEditPaste & toolScan cannot be seen private sub setMDIMnuToolUnvisible() '***************************************' ' first method you can set a menuitem to be unvisible' '***************************************' 'this method you could not control one MenuItem 'you can only set a group of menuitems me.MdiParent.Menu.Menuitems(0).visible = False 'set the first group menuitem can not be seen 'with this method you have not right to modify toolScan dim frmMdi as MDIForm if tyhpeof me.MdiParent is MDIForm frmMdi = DirectCast(me.Mdiparent, MDIForm)'get the instantce of me.MdiParent ; 'then you should access all the members of class MDIForm without private members frmMdi.mnuEditPaste = False frmMdi.toolScan = Flase 'like this you could do everything with MDIForm you want end if end sub end Class
刷新数据,提示之后,CSS样式改变:解决方案:在ASP.NET中,如果是添加信息成功之后出现提示信息,那么只能用ClientScript.RegisterStartupScript(this.GetType(),"msg","<scr…
包装布局pack()目前对它的感觉是,当一个窗体的对象都设置完属性后,最后用它来绑定到窗体上。之后就不能再设置属性了名称描述取值范围expand当值为“yes”时,side选项无效。组件显示在父配件中心位置;若fill选项为”both”,则…
模态窗体也有人叫模式窗体,是否为模态窗体由Show方法的参数决定:语法object.Showstyle,ownerformShow方法的语法包含下列部分:部分描述object可选的。一个对象表达式,其值为“应用于”列表中的一个对象。如果省略…
看到Dev中的cxGrid组件的编辑器很强大,于是很想探究一下,跟踪cxGrid的代码比较麻烦,但原理大概知道一二.首先来研究一下设计器双击cxGrid弹出一个编辑窗体,选择窗体中的一个内容后,属性编辑器中的内容也随着变化.有了这个特性,对…
PublicClassForm1WithEventssAsNewStudentDimssAsNewStudentPrivateSubs_Fail(ByValfrmAsForm,ByValstrAsString)Handless.FailDi…
PrivateSubForm1_FormClosing(ByValsenderAsObject,ByValeAsSystem.Windows.Forms.FormClosingEventArgs)HandlesMe.FormClosingI…
在我们写程序的时候,有时需要记录当前窗体位置和大小,以便下次打开时恢复上次的大小跟位置,像一般的播放器浏览器就有这个功能通过注册表记录窗体的大小跟位置PrivateSubForm_Load()Me.Width=GetSetting(App.…
ImportsSystem.DrawingImportsSystem.Windows.Forms'******************************************PrivateoOriginalRegionAsRegio…