111,131
社区成员
发帖
与我相关
我的任务
分享
private SetControlRectangle m_SetRect;
private void Form1_Load(object sender, EventArgs e)
{
m_SetRect = new SetControlRectangle(this);
m_SetRect.SetRectangel += new SetControlRectangle.SelectRectangel(m_SetRect_SetRectangel);
}
void m_SetRect_SetRectangel(object sneder, Rectangle e)
{
string _SetText="";
for (int i = 0; i != this.Controls.Count; i++)
{
if (this.Controls[i] is Label)
{
if (e.IntersectsWith(this.Controls[i].Bounds))
{
_SetText += this.Controls[i].Text + "\r\n";
}
}
}
MessageBox.Show(_SetText);
}
private SetControlRectangle m_SetRect;
private void Form1_Load(object sender, EventArgs e)
{
m_SetRect = new SetControlRectangle(this);
m_SetRect.SetRectangel += new SetControlRectangle.SelectRectangel(m_SetRect_SetRectangel);
}
void m_SetRect_SetRectangel(object sneder, Rectangle e)
{
string _SetText="";
for (int i = 0; i != this.Controls.Count; i++)
{
if (this.Controls[i] is Label)
{
if (e.IntersectsWith(this.Controls[i].Bounds))
{
_SetText += this.Controls[i].Text + "\r\n";
}
}
}
MessageBox.Show(_SetText);
}