SHARE
TWEET

Untitled

a guest Jun 16th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private void btPowerOn_Click(object sender, EventArgs e)
  2.     {
  3.         Color colour;
  4.         ButtonPower buttonpower = new ButtonPower(this);
  5.         var button = sender as Button;
  6.         buttonpower.buttonOnOff(button.Name, Convert.ToByte(this.lvVMs_1.SelectedItems[0].Group.Header));
  7.       } //<-- Following this the listview has no focus.
  8.      
  9. // lvVMs_1
  10.         //
  11.         this.lvVMs_1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  12.         | System.Windows.Forms.AnchorStyles.Left)));
  13.         this.lvVMs_1.AutoArrange = false;
  14.         this.lvVMs_1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  15.         this.lvVMs_1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
  16.         this.lvVMs_1.HideSelection = false;
  17.         this.lvVMs_1.LabelWrap = false;
  18.         this.lvVMs_1.Location = new System.Drawing.Point(8, 25);
  19.         this.lvVMs_1.MultiSelect = false;
  20.         this.lvVMs_1.Name = "lvVMs_1";
  21.         this.lvVMs_1.Size = new System.Drawing.Size(280, 651);
  22.         this.lvVMs_1.TabIndex = 52;
  23.         this.lvVMs_1.UseCompatibleStateImageBehavior = false;
  24.         this.lvVMs_1.View = System.Windows.Forms.View.Tile;
  25.         this.lvVMs_1.SelectedIndexChanged += new System.EventHandler(this.lvVMs_1_SelectedIndexChanged);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top