티스토리 뷰

Code/C#

.NET Compact Framework Project Sample

Hide Code 2008. 8. 13. 20:11


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?";
        }
    }
}




공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
글 보관함