Creating Button with Subbutton in powershell

DHoss 61 Reputation points
2023-02-22T17:59:31.3366667+00:00

Hello All,

I hope someone can help me out here. I have a form where I have multiple button to do various stuff and one button is called WarrantyCheck. Currently when I click this button it takes me to check some site where I can check my device warranty. But what I am trying to do is that when I move my mouse over to WarrantyCheck button, it will open up 2/3 subbutton where I will click to go to different site based on my device manufacturer, eg: IBM, HP etc. I have created the form with powershell. I would appreciate if someone can help me out please.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2023-02-22T19:17:27.7166667+00:00

    Powershell is a CLI tool, not a UI. Exactly how are you "creating" a form in PS? Posting the code would be most useful. However note that if you're trying to create a System.Windows.Forms.Form in PS (because it can create anything) then don't expect it to actually run because a UI requires a message pump and that isn't what PS is for.

    If you need a UI then use C# or VB or another programming language and UI framework to build the UI. PS is for CLI.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.