1. pictureBox文字提示
toolTip1.SetToolTip(pictureBox1, "搜索");
2. tableLayoutPanel 跨所有列
tableLayoutPanel1.SetColumnSpan(dataGridView1, tableLayoutPanel1.ColumnCount);
3. 切换tabPage
tabControl1.SelectedIndex = 1;
4. textBox提示
private void textBox1_MouseDown(object sender, MouseEventArgs e)
{
if (textBox1.Text.Equals(textBoxNotice))
{
this.textBox1.ForeColor = Color.Black;
textBox1.Text = "";
}
}
private void textBox1_KeyUp(object sender, KeyEventArgs e)
{
if (textBox1.Text.Length == 0)
{
this.textBox1.ForeColor = SystemColors.ScrollBar;
textBox1.Text = t