Click here to Skip to main content
15,911,315 members
Home / Discussions / C#
   

C#

 
Questionauto position Pin
benjamin yap14-May-08 21:16
benjamin yap14-May-08 21:16 
AnswerRe: auto position Pin
sunspeed14-May-08 21:39
sunspeed14-May-08 21:39 
GeneralRe: auto position Pin
benjamin yap14-May-08 21:53
benjamin yap14-May-08 21:53 
GeneralRe: auto position Pin
dan!sh 14-May-08 22:07
professional dan!sh 14-May-08 22:07 
GeneralRe: auto position Pin
sunspeed14-May-08 22:11
sunspeed14-May-08 22:11 
GeneralRe: auto position Pin
dan!sh 14-May-08 22:40
professional dan!sh 14-May-08 22:40 
GeneralRe: auto position Pin
sunspeed14-May-08 22:43
sunspeed14-May-08 22:43 
GeneralRe: auto position Pin
dan!sh 14-May-08 22:53
professional dan!sh 14-May-08 22:53 
Here it is:

using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
<br />
namespace CPProj {<br />
  public partial class Anchoring : Form {<br />
<br />
    #region Constructors<br />
    public Anchoring() {<br />
      // Default constructor<br />
      InitializeComponent();<br />
      }                                                                                 // Anchoring<br />
    #endregion<br />
<br />
    #region Code from Designer File<br />
<br />
    /// <summary><br />
    /// Required designer variable.<br />
    /// </summary><br />
    private System.ComponentModel.IContainer components = null;<br />
<br />
    /// <summary><br />
    /// Clean up any resources being used.<br />
    /// </summary><br />
    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param><br />
    protected override void Dispose(bool disposing) {<br />
      if(disposing && (components != null)) {<br />
        components.Dispose();<br />
        }<br />
      base.Dispose(disposing);<br />
      }<br />
<br />
    /// <summary><br />
    /// Required method for Designer support - do not modify<br />
    /// the contents of this method with the code editor.<br />
    /// </summary><br />
    private void InitializeComponent() {<br />
      this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();<br />
      this.grpSample = new System.Windows.Forms.GroupBox();<br />
      this.btnSample = new System.Windows.Forms.Button();<br />
      this.tableLayoutPanel1.SuspendLayout();<br />
      this.grpSample.SuspendLayout();<br />
      this.SuspendLayout();<br />
      // <br />
      // tableLayoutPanel1<br />
      // <br />
      this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)<br />
                  | System.Windows.Forms.AnchorStyles.Left)<br />
                  | System.Windows.Forms.AnchorStyles.Right)));<br />
      this.tableLayoutPanel1.ColumnCount = 3;<br />
      this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));<br />
      this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 110F));<br />
      this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));<br />
      this.tableLayoutPanel1.Controls.Add(this.grpSample, 1, 1);<br />
      this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 12);<br />
      this.tableLayoutPanel1.Name = "tableLayoutPanel1";<br />
      this.tableLayoutPanel1.RowCount = 3;<br />
      this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));<br />
      this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 110F));<br />
      this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));<br />
      this.tableLayoutPanel1.Size = new System.Drawing.Size(277, 242);<br />
      this.tableLayoutPanel1.TabIndex = 0;<br />
      // <br />
      // groupBox1<br />
      // <br />
      this.grpSample.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)<br />
                  | System.Windows.Forms.AnchorStyles.Left)<br />
                  | System.Windows.Forms.AnchorStyles.Right)));<br />
      this.grpSample.BackColor = System.Drawing.SystemColors.ControlText;<br />
      this.grpSample.Controls.Add(this.btnSample);<br />
      this.grpSample.Location = new System.Drawing.Point(86, 69);<br />
      this.grpSample.Name = "groupBox1";<br />
      this.grpSample.Size = new System.Drawing.Size(104, 104);<br />
      this.grpSample.TabIndex = 0;<br />
      this.grpSample.TabStop = false;<br />
      this.grpSample.Text = "groupBox1";<br />
      // <br />
      // button1<br />
      // <br />
      this.btnSample.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)<br />
                  | System.Windows.Forms.AnchorStyles.Left)<br />
                  | System.Windows.Forms.AnchorStyles.Right)));<br />
      this.btnSample.Location = new System.Drawing.Point(6, 31);<br />
      this.btnSample.Name = "button1";<br />
      this.btnSample.Size = new System.Drawing.Size(75, 23);<br />
      this.btnSample.TabIndex = 0;<br />
      this.btnSample.Text = "button1";<br />
      this.btnSample.UseVisualStyleBackColor = true;<br />
      // <br />
      // Anchoring<br />
      // <br />
      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);<br />
      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;<br />
      this.ClientSize = new System.Drawing.Size(292, 266);<br />
      this.Controls.Add(this.tableLayoutPanel1);<br />
      this.MinimumSize = new System.Drawing.Size(200, 200);<br />
      this.Name = "Anchoring";<br />
      this.Text = "Anchoring";<br />
      this.tableLayoutPanel1.ResumeLayout(false);<br />
      this.grpSample.ResumeLayout(false);<br />
      this.ResumeLayout(false);<br />
<br />
      }<br />
   <br />
<br />
    private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;<br />
    private System.Windows.Forms.GroupBox grpSample;<br />
    private System.Windows.Forms.Button btnSample;<br />
    #endregion<br />
    }                                                                                   // Class<br />
  }                                                                                     // Namespace


Avoid Google. Use Blackle[^]

GeneralRe: auto position Pin
sunspeed14-May-08 23:08
sunspeed14-May-08 23:08 
GeneralRe: auto position Pin
sunspeed14-May-08 22:08
sunspeed14-May-08 22:08 
QuestionAdvice on Calculation Pin
MumbleB14-May-08 20:57
MumbleB14-May-08 20:57 
AnswerRe: Advice on Calculation Pin
Eduard Keilholz14-May-08 21:08
Eduard Keilholz14-May-08 21:08 
AnswerRe: Advice on Calculation Pin
Christian Graus14-May-08 21:11
protectorChristian Graus14-May-08 21:11 
GeneralRe: Advice on Calculation Pin
MumbleB14-May-08 21:38
MumbleB14-May-08 21:38 
GeneralRe: Advice on Calculation Pin
CPallini14-May-08 21:56
mveCPallini14-May-08 21:56 
GeneralRe: Advice on Calculation Pin
MumbleB14-May-08 22:06
MumbleB14-May-08 22:06 
GeneralRe: Advice on Calculation Pin
CPallini14-May-08 22:19
mveCPallini14-May-08 22:19 
GeneralRe: Advice on Calculation Pin
MumbleB14-May-08 22:32
MumbleB14-May-08 22:32 
GeneralRe: Advice on Calculation Pin
J4amieC14-May-08 22:33
J4amieC14-May-08 22:33 
GeneralRe: Advice on Calculation Pin
MumbleB14-May-08 22:44
MumbleB14-May-08 22:44 
GeneralRe: Advice on Calculation Pin
CPallini14-May-08 22:48
mveCPallini14-May-08 22:48 
GeneralRe: Advice on Calculation Pin
MumbleB14-May-08 22:57
MumbleB14-May-08 22:57 
GeneralRe: Advice on Calculation Pin
MumbleB14-May-08 23:08
MumbleB14-May-08 23:08 
GeneralRe: Advice on Calculation Pin
J4amieC14-May-08 22:33
J4amieC14-May-08 22:33 
GeneralRe: Advice on Calculation Pin
MumbleB14-May-08 22:48
MumbleB14-May-08 22:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.