是否可以在winforms中打开具有特定面板视图的其他表单?

问题描述 投票:1回答:2

我想从一种形式移到另一种形式,包含多个面板。我需要从中查看该特定面板。我想回到上一页,而上一页是另一种形式,它有三个面板,我需要从中查看第二个面板。

    private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    {
        this.Hide();
        Mainp mainf = new Mainp();
        mainf.Show();

    }

上面的代码只是切换了表单,但是使用默认面板,我已经设置了...但是与此同时,我需要查看面板2。请帮助...提前感谢

这些是表单的屏幕截图。This is my home image and my first formThis is the same form but this is the result of panel switch and this is the panel I need to view when I press the previous buttonThis is the second form

c# .net visual-studio winforms desktop-application
2个回答
0
投票

我已经找到了答案...我只是要使面板访问从私有到公共才能访问...我必须使我的主要表单的面板访问从私有到公共,现在我可以从其他形式。


-1
投票

如果您可以提供尝试做的事情的屏幕快照,将非常感谢

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.