Exemple #1
0
 private void fmBase_Load(object sender, EventArgs e)
 {
     FBindingSource = new BindingSource();
     FBindingSource.PositionChanged +=
         new EventHandler(this.FBindingSource_PositionChanged);
     //建立共用函數類別
     XIN = new XINFunction();
     //預設狀態為瀏覽模式
     TBStatus = 0;
     //所有按鈕的狀態
     SetButtons();
     //設定所有輸入控制項的唯讀狀態
     SetControls();
     //視窗位置
     this.Left = 0;
     this.Top  = 0;
     //取得程式代碼
     FProgramID = this.Name.Substring(2);
 }