title: How can I do it properly with Powershell forms?
body: <p>Recently, I have started getting acquainted with the windows forms in Powershell  and I would like to create a button with a picture on it. The picture appears on a button but in mosaic styles. Is there a solution to keep the picture on the center of the button?</p>
  
  <p><a href="https://i.stack.imgur.com/Z6DVU.png" rel="nofollow noreferrer">Here is the picture about what I can see and what I want to see</a></p>
  
  <p>Here is my code:</p>
  
  <pre><code>$Shutdown_button = New-Object System.Windows.Forms.Button
  $Shutdown_button.Location = New-Object System.Drawing.Size(781,115)
  $Shutdown_button.Size = New-Object System.Drawing.Size(90,90)
  $Shutdown_button.Text = "Shutdown"
  $Shutdown_button.ForeColor = "Black"
  $Shutdown_button.TextAlign = 'BottomCenter'
  $Shutdown_button.ImageAlign = 'TopCenter'
  $Image_Shutdown = [system.drawing.image]::FromFile("$($scriptPath)Source\Images\shutdown.png")
  $Shutdown_button.BackgroundImage = $Image_Shutdown
  $Shutdown_button.Add_Click($Shutdown_button_Click)
  
  $form_MainForm.Controls.Add($Shutdown_button)
  </code></pre>
  
  <p>Thank you in advance.</p>