| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 430 人关注过本帖
标题:Visual2003控件消失的问题又出现了!
只看楼主 加入收藏
飙马
Rank: 5Rank: 5
来 自:马里亚纳
等 级:贵宾
威 望:15
帖 子:779
专家分:280
注 册:2007-3-28
收藏
 问题点数:0 回复次数:3 
Visual2003控件消失的问题又出现了!

图片附件: 游客没有浏览图片的权限,请 登录注册



但是它的代码还在:


#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.btnBookIn = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this.btnNotFull = new System.Windows.Forms.Button();
this.btnEmptyRoom = new System.Windows.Forms.Button();
this.btnSearch = new System.Windows.Forms.Button();
this.textRemark = new System.Windows.Forms.TextBox();
this.comboRoomPosition = new System.Windows.Forms.ComboBox();
this.comboRoomType = new System.Windows.Forms.ComboBox();
this.comboFactPeopleNum = new System.Windows.Forms.ComboBox();
this.comboPeopleNum = new System.Windows.Forms.ComboBox();
this.textRoomID = new System.Windows.Forms.TextBox();
this.listView1 = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
this.columnHeader6 = new System.Windows.Forms.ColumnHeader();
this.btnExit = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(168, 64);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(56, 23);
this.label1.TabIndex = 0;
this.label1.Text = "实际人数";
//
// label2
//
this.label2.Location = new System.Drawing.Point(16, 24);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(48, 23);
this.label2.TabIndex = 1;
this.label2.Text = "房间号";
//
// label3
//
this.label3.Location = new System.Drawing.Point(168, 32);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(56, 23);
this.label3.TabIndex = 2;
this.label3.Text = "房间类型";
//
// label4
//
this.label4.Location = new System.Drawing.Point(296, 32);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 23);
this.label4.TabIndex = 3;
this.label4.Text = "房间楼层";
//
// label5
//
this.label5.Location = new System.Drawing.Point(32, 64);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(56, 16);
this.label5.TabIndex = 4;
this.label5.Text = "额定人数";
//
// label6
//
this.label6.Location = new System.Drawing.Point(40, 104);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(56, 16);
this.label6.TabIndex = 5;
this.label6.Text = "其它条件";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.btnBookIn);
this.groupBox1.Controls.Add(this.btnCancel);
this.groupBox1.Controls.Add(this.btnNotFull);
this.groupBox1.Controls.Add(this.btnEmptyRoom);
this.groupBox1.Controls.Add(this.btnSearch);
this.groupBox1.Controls.Add(this.textRemark);
this.groupBox1.Controls.Add(this.comboRoomPosition);
this.groupBox1.Controls.Add(this.comboRoomType);
this.groupBox1.Controls.Add(this.comboFactPeopleNum);
this.groupBox1.Controls.Add(this.comboPeopleNum);
this.groupBox1.Controls.Add(this.textRoomID);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Location = new System.Drawing.Point(16, 8);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(408, 168);
this.groupBox1.TabIndex = 6;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "输入查询条件";
//
// btnBookIn
//
this.btnBookIn.Location = new System.Drawing.Point(304, 128);
this.btnBookIn.Name = "btnBookIn";
this.btnBookIn.Size = new System.Drawing.Size(48, 23);
this.btnBookIn.TabIndex = 10;
this.btnBookIn.Text = "入住";
//
// btnCancel
//
this.btnCancel.Location = new System.Drawing.Point(240, 128);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(48, 23);
this.btnCancel.TabIndex = 9;
this.btnCancel.Text = "取消";
//
// btnNotFull
//
this.btnNotFull.Location = new System.Drawing.Point(176, 128);
this.btnNotFull.Name = "btnNotFull";
this.btnNotFull.Size = new System.Drawing.Size(48, 23);
this.btnNotFull.TabIndex = 8;
this.btnNotFull.Text = "未满";
//
// btnEmptyRoom
//
this.btnEmptyRoom.Location = new System.Drawing.Point(112, 128);
this.btnEmptyRoom.Name = "btnEmptyRoom";
this.btnEmptyRoom.Size = new System.Drawing.Size(48, 23);
this.btnEmptyRoom.TabIndex = 7;
this.btnEmptyRoom.Text = "空房";
//
// btnSearch
//
this.btnSearch.Location = new System.Drawing.Point(48, 128);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(48, 23);
this.btnSearch.TabIndex = 6;
this.btnSearch.Text = "查找";
//
// textRemark
//
this.textRemark.Location = new System.Drawing.Point(80, 88);
this.textRemark.Name = "textRemark";
this.textRemark.Size = new System.Drawing.Size(264, 21);
this.textRemark.TabIndex = 5;
this.textRemark.Text = "";
//
// comboRoomPosition
//
this.comboRoomPosition.Items.AddRange(new object[] {
"一层",
"二层",
"三层"});
this.comboRoomPosition.Location = new System.Drawing.Point(344, 16);
this.comboRoomPosition.Name = "comboRoomPosition";
this.comboRoomPosition.Size = new System.Drawing.Size(56, 20);
this.comboRoomPosition.TabIndex = 3;
//
// comboRoomType
//
this.comboRoomType.Items.AddRange(new object[] {
"标准间",
"双人间",
"三人间",
"四人间"});
this.comboRoomType.Location = new System.Drawing.Point(216, 16);
this.comboRoomType.Name = "comboRoomType";
this.comboRoomType.Size = new System.Drawing.Size(56, 20);
this.comboRoomType.TabIndex = 2;
//
// comboFactPeopleNum
//
this.comboFactPeopleNum.Items.AddRange(new object[] {
"1",
"2",
"3",
"4"});
this.comboFactPeopleNum.Location = new System.Drawing.Point(216, 48);
this.comboFactPeopleNum.Name = "comboFactPeopleNum";
this.comboFactPeopleNum.Size = new System.Drawing.Size(56, 20);
this.comboFactPeopleNum.TabIndex = 1;
//
// comboPeopleNum
//
this.comboPeopleNum.Items.AddRange(new object[] {
"1",
"2",
"3",
"4"});
this.comboPeopleNum.Location = new System.Drawing.Point(72, 48);
this.comboPeopleNum.Name = "comboPeopleNum";
this.comboPeopleNum.Size = new System.Drawing.Size(64, 20);
this.comboPeopleNum.TabIndex = 0;
//
// textRoomID
//
this.textRoomID.Location = new System.Drawing.Point(72, 16);
this.textRoomID.Name = "textRoomID";
this.textRoomID.Size = new System.Drawing.Size(64, 21);
this.textRoomID.TabIndex = 4;
this.textRoomID.Text = "";
//
// listView1
//
this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.listView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader2,
this.columnHeader3,
this.columnHeader4,
this.columnHeader5,
this.columnHeader6});
this.listView1.ForeColor = System.Drawing.SystemColors.Desktop;
this.listView1.FullRowSelect = true;
this.listView1.GridLines = true;
this.listView1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
this.listView1.Location = new System.Drawing.Point(0, 0);
this.listView1.Name = "listView1";
this.listView1.TabIndex = 0;
//
// btnExit
//
this.btnExit.Location = new System.Drawing.Point(0, 0);
this.btnExit.Name = "btnExit";
this.btnExit.TabIndex = 0;
//
// RoomSearch
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(376, 245);
this.Name = "RoomSearch";
this.groupBox1.ResumeLayout(false);

});
this.listView1.Location = new System.Drawing.Point(16, 192);
this.listView1.MultiSelect = false;
this.listView1.Name = "listView1";
this.listView1.Size = new System.Drawing.Size(408, 136);
this.listView1.TabIndex = 21;
//
// columnHeader1
//
this.columnHeader1.Text = "房间号";
//
// columnHeader2
//
this.columnHeader2.Text = "房间类型";
//
// columnHeader3
//
this.columnHeader3.Text = "房间楼层";
//
// columnHeader4
//
this.columnHeader4.Text = "额定人数";
//
// columnHeader5
//
this.columnHeader5.Text = "实际人数";
//
// columnHeader6
//
this.columnHeader6.Text = "备注";
//
// btnExit
//
this.btnExit.Location = new System.Drawing.Point(184, 344);
this.btnExit.Name = "btnExit";
this.btnExit.TabIndex = 11;
this.btnExit.Text = "退出";
//
// RoomSearch
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(448, 373);
this.Controls.Add(this.listView1);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label1);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.btnExit);
this.Name = "RoomSearch";
this.Text = "客房查询";
this.groupBox1.ResumeLayout(false);
this.ResumeLayout(false);

}
#endregion


一句话,什么玩意啊?

搜索更多相关主题的帖子: 控件 
2007-04-24 09:08
bygg
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:乖乖的心中
等 级:版主
威 望:241
帖 子:13555
专家分:3076
注 册:2006-10-23
收藏
得分:0 
我也碰到过这样的问题,先做好了一个窗体,过一段时间,控件的代码都在,但是在界面上看不到控件...

飘过~~
2007-04-24 09:17
jacklee
Rank: 7Rank: 7Rank: 7
来 自:XAplus
等 级:贵宾
威 望:32
帖 子:1769
专家分:104
注 册:2006-11-3
收藏
得分:0 
晕。从新打开行不行?我以前在FORM上加一个TABCONTRL加了12个TABPAGE.超过8个就出现了TABPAGE 的INDEX顺序自动混乱。我还找错找了一下午,气死。。。我从新打开再排一下就可以了!

XAplus!
讨论群:51090447
删吧删吧,把我的号给删了!
2007-04-24 09:19
CrazyWeed0907
Rank: 2
等 级:新手上路
威 望:5
帖 子:1385
专家分:0
注 册:2006-5-30
收藏
得分:0 

看看你的构造函数里有没有什么变化


“十步杀一人,千里不留行。事了拂衣去,深藏身与名。”
2007-04-24 09:47
快速回复:Visual2003控件消失的问题又出现了!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017347 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved