新手请教个问题,谢谢

a648550749 2016-05-15 09:01:06


这是我网上找的源码,为什么我看窗体属性里头并没有设置 --后面的内容,他是怎么设置的啊???
...全文
484 23 打赏 收藏 转发到动态 举报
写回复
用AI写文章
23 条回复
切换为时间正序
请发表友善的回复…
发表回复
Dull_a 2016-05-18
  • 打赏
  • 举报
回复
你看看右边的属性
EAison 2016-05-17
  • 打赏
  • 举报
回复
ctrl+F 然后解决方案查找一下关键字不就可以了?
crystal_lz 2016-05-16
  • 打赏
  • 举报
回复
直接 ctrl + f 一下不就知道了? 如果没有 那么就表示他是动态加载的咯 你还是得看代码 找 "this.Text" 看他所有赋值的地方
ajh99990 2016-05-16
  • 打赏
  • 举报
回复
不太懂题主意思。你已经知道了是窗体的text属性不包含“某某商场”这几个字,那你把你想写的字加上不得了? this.Text=“想在窗体标题栏显示的全部内容” 这是代码上修改。或者更直接的方法直接属性面板里找到Text属性 把内容改成你想要的就行了。
道系月月 2016-05-16
  • 打赏
  • 举报
回复
CTRl+F 然后输入你没有找到的东西,选择所有文件,应该就可以找到了
u013431840 2016-05-15
  • 打赏
  • 举报
回复
在Load事件里面加上如下代码即可

this.Text+="-- 【济南某某商场】"
  • 打赏
  • 举报
回复
这个是*.Designer.cs的内容,不是*.cs的
a648550749 2016-05-15
  • 打赏
  • 举报
回复
引用 9 楼 从事CSharp程序开发的回复:
Form的Load事件所在的文件就是*.cs
发了,在楼下,你看看是不是这个
a648550749 2016-05-15
  • 打赏
  • 举报
回复
// // btnExit // this.btnExit.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btnExit.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.btnExit.Location = new System.Drawing.Point(268, 178); this.btnExit.Name = "btnExit"; this.btnExit.Size = new System.Drawing.Size(92, 23); this.btnExit.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnExit.TabIndex = 7; this.btnExit.Text = "取消(Esc)"; this.btnExit.Click += new System.EventHandler(this.btnExit_Click); // // panelEx1 // this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.panelEx1.Controls.Add(this.btnExit); this.panelEx1.Controls.Add(this.btnLogin); this.panelEx1.Controls.Add(this.cbUserid); this.panelEx1.Controls.Add(this.tbPwd); this.panelEx1.Controls.Add(this.labelX2); this.panelEx1.Controls.Add(this.labelX1); this.panelEx1.Controls.Add(this.pictureBox2); this.panelEx1.Controls.Add(this.pictureBox1); this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill; this.panelEx1.Location = new System.Drawing.Point(0, 0); this.panelEx1.Name = "panelEx1"; this.panelEx1.Size = new System.Drawing.Size(399, 238); this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; this.panelEx1.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; this.panelEx1.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; this.panelEx1.Style.GradientAngle = 90; this.panelEx1.TabIndex = 0; // // galleryContainer2 // // // // this.galleryContainer2.BackgroundStyle.Class = "RibbonFileMenuColumnTwoContainer"; this.galleryContainer2.EnableGalleryPopup = false; this.galleryContainer2.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.galleryContainer2.MinimumSize = new System.Drawing.Size(180, 240); this.galleryContainer2.MultiLine = false; this.galleryContainer2.Name = "galleryContainer2"; this.galleryContainer2.PopupUsesStandardScrollbars = false; // // labelItem1 // this.labelItem1.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; this.labelItem1.BorderType = DevComponents.DotNetBar.eBorderType.Etched; this.labelItem1.CanCustomize = false; this.labelItem1.Name = "labelItem1"; // // galleryContainer3 // // // // this.galleryContainer3.BackgroundStyle.Class = "RibbonFileMenuColumnTwoContainer"; this.galleryContainer3.EnableGalleryPopup = false; this.galleryContainer3.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.galleryContainer3.MinimumSize = new System.Drawing.Size(180, 240); this.galleryContainer3.MultiLine = false; this.galleryContainer3.Name = "galleryContainer3"; this.galleryContainer3.PopupUsesStandardScrollbars = false; // // labelItem2 // this.labelItem2.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; this.labelItem2.BorderType = DevComponents.DotNetBar.eBorderType.Etched; this.labelItem2.CanCustomize = false; this.labelItem2.Name = "labelItem2"; // // frmLogin // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(399, 238); this.Controls.Add(this.panelEx1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "frmLogin"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = " 旺财收银管理系统1"; this.Load += new System.EventHandler(this.frmLogin_Load); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.panelEx1.ResumeLayout(false); this.ResumeLayout(false);
a648550749 2016-05-15
  • 打赏
  • 举报
回复
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmLogin)); this.styleManager1 = new DevComponents.DotNetBar.StyleManager(); this.styleManager2 = new DevComponents.DotNetBar.StyleManager(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.labelX1 = new DevComponents.DotNetBar.LabelX(); this.labelX2 = new DevComponents.DotNetBar.LabelX(); this.tbPwd = new DevComponents.DotNetBar.Controls.TextBoxX(); this.cbUserid = new DevComponents.DotNetBar.Controls.ComboBoxEx(); this.btnLogin = new DevComponents.DotNetBar.ButtonX(); this.btnExit = new DevComponents.DotNetBar.ButtonX(); this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); this.galleryContainer2 = new DevComponents.DotNetBar.GalleryContainer(); this.labelItem1 = new DevComponents.DotNetBar.LabelItem(); this.galleryContainer3 = new DevComponents.DotNetBar.GalleryContainer(); this.labelItem2 = new DevComponents.DotNetBar.LabelItem(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.panelEx1.SuspendLayout(); this.SuspendLayout(); // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2007Blue; // // styleManager2 // this.styleManager2.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2007Blue; // // pictureBox1 // this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top; this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(0, 0); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(399, 64); this.pictureBox1.TabIndex = 0; this.pictureBox1.TabStop = false; // // pictureBox2 // this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image"))); this.pictureBox2.Location = new System.Drawing.Point(30, 101); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(106, 101); this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox2.TabIndex = 1; this.pictureBox2.TabStop = false; // // labelX1 // // // // this.labelX1.BackgroundStyle.Class = ""; this.labelX1.Location = new System.Drawing.Point(153, 99); this.labelX1.Name = "labelX1"; this.labelX1.Size = new System.Drawing.Size(51, 23); this.labelX1.TabIndex = 2; this.labelX1.Text = "用户名:"; // // labelX2 // // // // this.labelX2.BackgroundStyle.Class = ""; this.labelX2.Location = new System.Drawing.Point(153, 135); this.labelX2.Name = "labelX2"; this.labelX2.Size = new System.Drawing.Size(51, 23); this.labelX2.TabIndex = 3; this.labelX2.Text = "密 码:"; // // tbPwd // // // // this.tbPwd.Border.Class = "TextBoxBorder"; this.tbPwd.Location = new System.Drawing.Point(210, 137); this.tbPwd.Name = "tbPwd"; this.tbPwd.PasswordChar = '*'; this.tbPwd.Size = new System.Drawing.Size(150, 21); this.tbPwd.TabIndex = 4; this.tbPwd.Text = "123456"; // // cbUserid // this.cbUserid.DisplayMember = "Text"; this.cbUserid.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.cbUserid.FormattingEnabled = true; this.cbUserid.ItemHeight = 15; this.cbUserid.Location = new System.Drawing.Point(210, 99); this.cbUserid.Name = "cbUserid"; this.cbUserid.Size = new System.Drawing.Size(150, 21); this.cbUserid.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.cbUserid.TabIndex = 5; // // btnLogin // this.btnLogin.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btnLogin.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.btnLogin.Location = new System.Drawing.Point(153, 178); this.btnLogin.Name = "btnLogin"; this.btnLogin.Size = new System.Drawing.Size(92, 23); this.btnLogin.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnLogin.TabIndex = 6; this.btnLogin.Text = "登录(Enter)"; this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
a648550749 2016-05-15
  • 打赏
  • 举报
回复
引用 9 楼 从事CSharp程序开发的回复:
Form的Load事件所在的文件就是*.cs
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(399, 238);
this.Controls.Add(this.panelEx1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmLogin";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = " 旺财收银管理系统1";
this.Load += new System.EventHandler(this.frmLogin_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.panelEx1.ResumeLayout(false);
this.ResumeLayout(false);
a648550749 2016-05-15
  • 打赏
  • 举报
回复
e,图片发不出去啊!!!!!
  • 打赏
  • 举报
回复
Form的Load事件所在的文件就是*.cs
  • 打赏
  • 举报
回复
frmLogin_Load这个方法所在类的代码也发来看下
a648550749 2016-05-15
  • 打赏
  • 举报
回复
这里设置的也没有后面的内容
a648550749 2016-05-15
  • 打赏
  • 举报
回复
引用 7 楼 从事CSharp程序开发的回复:
*.Designer.cs 以及 *.cs这俩都看下
找了很多地方都没有看见
  • 打赏
  • 举报
回复
把Form的代码都贴过来看下
a648550749 2016-05-15
  • 打赏
  • 举报
回复
引用 4 楼 从事CSharp程序开发的回复:
LZ看下Form的Load事件
我看了,也只有旺财管理这几个字没有后面的济南,,,,
  • 打赏
  • 举报
回复
*.Designer.cs 以及 *.cs这俩都看下
a648550749 2016-05-15
  • 打赏
  • 举报
回复
引用 2 楼 guonan198811的回复:
没看懂楼主的问题,能说的清楚些 吗
就是this.text只写了旺财管理收银系统,并没有写济南某某商场!我想把济南某某商场改成别的内容,但是找不到在哪里修改
加载更多回复(3)

111,129

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧