using System;
using System.Windows.Forms;
namespace SmartDeviceProject1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.tabControl1.Height = this.Height;
}
private void inputPanel1_EnabledChanged(object sender, EventArgs e)
{
this.SuspendLayout();
if (this.inputPanel1.Enabled)
{
this.tabControl1.Height = this.Height - this.inputPanel1.Bounds.Height;
}
else
{
this.tabControl1.Height = this.Height;
}
this.ResumeLayout();
}
private void button1_Click(object sender, EventArgs e)
{
this.textBox1.Text = "Hi guys and girls!";
}
private void button2_Click(object sender, EventArgs e)
{
this.textBox1.Text = "Where do you want to go today?";
}
}
}
using System.Windows.Forms;
namespace SmartDeviceProject1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.tabControl1.Height = this.Height;
}
private void inputPanel1_EnabledChanged(object sender, EventArgs e)
{
this.SuspendLayout();
if (this.inputPanel1.Enabled)
{
this.tabControl1.Height = this.Height - this.inputPanel1.Bounds.Height;
}
else
{
this.tabControl1.Height = this.Height;
}
this.ResumeLayout();
}
private void button1_Click(object sender, EventArgs e)
{
this.textBox1.Text = "Hi guys and girls!";
}
private void button2_Click(object sender, EventArgs e)
{
this.textBox1.Text = "Where do you want to go today?";
}
}
}
'Code > C#' 카테고리의 다른 글
| [C#] Object Binding Sample Project (0) | 2008.12.20 |
|---|---|
| [C#] ADO.NET XML and DataGridView Binding Sample Project (0) | 2008.12.20 |
| Cursor.Position, SetCursorPos, mouse_event 샘플코드 (0) | 2008.04.18 |
| Process : Thread를 이용한 메모장에 키 입력하기 (0) | 2008.04.18 |
| Process : 메모장에 키 입력하기 (0) | 2008.04.17 |
invalid-file