如何将按钮从一个表单隐藏到另一个表单按钮或面板? [英] how do I hide button from one form to another form button or panel?

查看:94
本文介绍了如何将按钮从一个表单隐藏到另一个表单按钮或面板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



请问如何隐藏按钮或面板,无论是从一种形式到另一种形式的按钮或面板?

例如,当我点击form1按钮和另一个表单按钮或面板时,我需要隐藏。



实际上我能够在vb中写出上述问题。 net(windows应用程序),如下所示,



Hi all,

Please how do I hide button or panel whatever it is from one form to another form button or panel?
For example when I click on the form1 button and another form button or panel will i need to hide.

actually i can able to write the above problem in vb.net(windows application) which is given below,

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Form2.Show()
        Form2.Button1.Hide()
    End Sub





但我无法编写代码c#windows应用程序,我表示上面的vb.net代码,

所以请在这里放下你的评论非常明显....





提前感谢....



but i cant able to write code in c# windows application which i denote the above vb.net code,
so please kindly drop your comments here which is very appreciable....


thanks in advance....

推荐答案

不要 - 让表格做到这一点'自我 - 你只是指示它做这项工作:在两个表格之间传递信息,第1部分:父母与孩子 [ ^ ]
Don''t - let the form do it it''s self - you just instruct it to do the job: Transfering information between two forms, Part 1: Parent to Child[^]


这篇关于如何将按钮从一个表单隐藏到另一个表单按钮或面板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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