C# C# C♯ でゲームを作ろう Part1at GAMEDEV
C# C# C♯ でゲームを作ろう Part1 - 暇つぶし2ch803:名前は開発中のものです。
10/05/29 14:59:36 d7f0XFIO
>>802
上下左右にアンカー設定つけてデザイナーがどういうコード吐くか見てみるといいよ
Form1.Designer.csってところに出力される
ちなみにVC#2008EE(.net3.5)だと

        private void InitializeComponent()
        {
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.SuspendLayout();
            //
            // textBox1
            //
            this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.textBox1.Location = new System.Drawing.Point(13, 13);
            this.textBox1.Multiline = true;
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(267, 241);
            this.textBox1.TabIndex = 0;

てな感じだった
それに指定できる項目がどうなってるか気になるなら
System.Windows.Forms.AnchorStyles.
まで打って候補を確認してみればいいのに


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch