groupbox焦点问题
我在一个groupbox里面放了两个button,请问有没有属性让一个button的焦点失去后焦点落到另一个上,我现在把两个button的tabstop都设成了true,但是不好使。是不是微软就是设计成一个groupbox里面的组件只能获得一次焦点啊? 问题点数:20、回复次数:5Top
1 楼playwarcraft(时间就像乳沟,挤挤还是有的)回复于 2006-07-03 14:00:43 得分 10
試試用SetFouce行不行?Top
2 楼wcmj(望尘莫及)回复于 2006-07-03 15:24:53 得分 10
tabIndex你怎么设的?
两个按钮的数字相连试下Top
3 楼buyaowen(失业中,请勿打扰)回复于 2006-07-03 16:57:58 得分 0
这是代码:
还有那个SetFouce是哪里的?没找到这个属性啊 //
// groupBox1
//
this.groupBox1.Controls.Add(this.rdbAfter);
this.groupBox1.Controls.Add(this.rdbBefore);
this.groupBox1.Location = new System.Drawing.Point(40, 96);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(112, 88);
this.groupBox1.TabIndex = 906;
this.groupBox1.TabStop = false;
//
// rdbBefore
//
this.rdbBefore.Checked = true;
this.rdbBefore.Font = new System.Drawing.Font("MS ゴシック", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.rdbBefore.ForeColor = System.Drawing.Color.Black;
this.rdbBefore.Location = new System.Drawing.Point(8, 15);
this.rdbBefore.Name = "rdbBefore";
this.rdbBefore.Size = new System.Drawing.Size(104, 32);
this.rdbBefore.TabIndex = 1;
this.rdbBefore.TabStop = true;
this.rdbBefore.Text = "前";
//
// rdbAfter
//
this.rdbAfter.Font = new System.Drawing.Font("MS ゴシック", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.rdbAfter.ForeColor = System.Drawing.Color.Black;
this.rdbAfter.Location = new System.Drawing.Point(8, 56);
this.rdbAfter.Name = "rdbAfter";
this.rdbAfter.TabIndex = 10;
this.rdbAfter.TabStop = true;
this.rdbAfter.Text = "后";
Top
4 楼buyaowen(失业中,请勿打扰)回复于 2006-07-07 10:36:05 得分 0
upTop
5 楼cmutex()回复于 2006-07-20 14:26:24 得分 0
this.rdbAfter.TabIndex = 10;
修改为2Top




