C#代码混乱....... [英] C# code confusion..........

查看:420
本文介绍了C#代码混乱.......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的代码

这是一个字符串集合

this is my code

this is a string collection

private void DragAndDropArea_Load(object sender, EventArgs e)
  {
this.Text = Properties.Settings.Default.Dock1[0];
}




我没有错误,我输入了3行,例如,什么也没发生

主题
0,0
0,0

出于某种原因,表单标题不会更改,我想知道为什么我没有这样做吗?




I have no errors, i have put in 3 lines, for example, just nothing happens

thetitle
0,0
0,0

for some reason, the form title dose not change and im wondering why, am i not doing this right?

推荐答案

this.Title

应该代替

this.Text


您是否使用任何第三方控件.如果您使用一些时间,它将起作用.任何方式
一次尝试这样

Are You using any third party controls. If You use some times it will effect.Any Way
once try like this

Form1 frmMain = new Form1;
frmMain.Text =  Properties.Settings.Default.Dock1[0];


这篇关于C#代码混乱.......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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