79690500

Date: 2025-07-04 17:07:00
Score: 2
Natty:
Report link

Using the following giving the button desired effect, thought you had to use a panel in a panel type object. But seems button type works good on panels too as described by resolution comment(s).

´$loginButton = New-Object Windows.Forms.Button
$form.Controls.Add($loginButton)
$form.AcceptButton = $loginButton´

Suggested by @Jimi. Thank you also @mklement0

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • User mentioned (1): @Jimi
  • User mentioned (0): @mklement0
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Paddingtonbear