C# winform界面设计 将多个图片显示到界面上 循环

c# winform 中循环控件_百度知道
c# winform 中循环控件
有一个form窗口,SplitContainer分成左右两半,右边采用不同的usercontrol,usercontrol1~usercontrol10。想在form中左边部分控制右边usercontrol的显示/隐藏。除了一一操作外,是否有其它可循环的方法批量去控制usercontrol的状态。 抱歉,只有20分了,全部给了。
提问者采纳
比如usercontrol1~usercontrol10 全是panel类的控件foreach(Control c in SplitContainer.panel1.Controls){
if(c is Panel)
Panel p = c as P
//这里可以加入其它逻辑
p.Visble =
提问者评价
根据Abel的代码,已经得到预期的效果,谢谢。
其他类似问题
按默认排序
其他2条回答
for(int i=1 ;i&=10;i++){usercontrol ctl=(usercontrol)(this.Controls.Find(&usercontrol&+i,true)[0]);console.writeline(ctl.name);}
你先帖代码,再根据你的代码写答案.
winform的相关知识
等待您来回答
您可能关注的推广
下载知道APP
随时随地咨询
出门在外也不愁温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
阅读(1304)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
id:'fks_',
blogTitle:'C# winfrom 程序 循环滚动展示图片(把注释的去掉就是循环展示颜色)',
blogAbstract:'using Susing System.Collections.GponentMusing System.Dusing System.Dusing System.Lusing System.Tusing System.Windows.Fusing System.IO;using System.Collections.S\r\nnamespace WindowsFormsApplication1{&&& public partial class Form1 : Form&&& {',
blogTag:'',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:0,
publishTime:0,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'',
hmcon:'0',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}CSDN网站正在维护中,会尽快恢复Winform中字段的循环滚动显示_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
评价文档:
5页¥3.002页免费2页免费2页免费7页免费 5页免费3页免费6页免费1页免费1页免费
喜欢此文档的还喜欢18页1下载券13页免费52页免费14页免费3页免费
Winform中字段的循环滚动显示|
把文档贴到Blog、BBS或个人站等:
普通尺寸(450*500pix)
较大尺寸(630*500pix)
你可能喜欢

我要回帖

更多关于 winform界面设计 的文章

 

随机推荐