Windows应用程序c#.net中的usercontrol中显示的主窗口图像 [英] main window's image displayed in usercontrol in windows application c# .net

查看:137
本文介绍了Windows应用程序c#.net中的usercontrol中显示的主窗口图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友..

这是我的问题.

我有一个具有一种形式的Windows应用程序.此表单包含一个标签和两个图像..我的工作是,在此表单的加载方法上,我添加了另一个与主表单(运行时)大小相同的用户控件,并使其显示为true.

I have a windows application with one form. this form contains one label and two images.. what i do is, on this form''s load method, i add another user control with size same as main form (runtime) and make it visible true.

这时候我有问题.主窗口的图像控件和标签显示在运行时添加的控件中.那么如何将其恢复为主要形式呢?

At this time i have problem. Main window''s images controls and labels are displayed in runtime added control. so how to bring it back to main form???

推荐答案

主窗口的图像控件和标签显示在运行时添加的控件中.那么如何将其恢复为主要形式?

Main window''s images controls and labels are displayed in runtime added control. so how to bring it back to main form???

为什么要在运行时执行此操作?

Why are you doing this at runtime?

您是说您具有MDI设置?并且您正在向父级添加控件?

do you mean you have a MDI setup? and you are adding a control to the parent?

如果您使用的是单个表格ap,那么...我猜想控件是叠加(堆叠)的,您看到的是您添加的控件...?

If your are using a single form ap then ... I am guessing that the control''s are superimposed(stacked) and you are seeing threw the one you add...?


这篇关于Windows应用程序c#.net中的usercontrol中显示的主窗口图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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