刷新时取消ToolStrip更改 [英] dismiss ToolStrip change on refresh

查看:147
本文介绍了刷新时取消ToolStrip更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我创建了包含ToolStrip和DGV的用户控件,并将其添加到表单中.我可以通过定义为公共属性来访问ToolStrip

Hi to all!

I created user control that contain ToolStrip and DGV and add it to form. I accessible ToolStrip by define as public properties

public ToolStrip Toolbar
    {
        set { ToolBarToolStrip = value; }
        get { return ToolBarToolStrip; }
    }


现在,我可以在表单中添加项目了.对接问题是表格刷新时(例如,在更改图片框的图像时)全部更改为关闭.

有什么问题?

感谢


Now I can add item to it in the form. butt problem is when form refresh (for example when change image of picture box) all change dismiss.

what''s problem?

thanks

推荐答案

尝试使用

try with

public static ToolStrip Toolbar
{
    set { ToolBarToolStrip = value; }
    get { return ToolBarToolStrip; }
}


这篇关于刷新时取消ToolStrip更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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