Open new form to get date

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Posts: 42
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Tue Oct 24, 2017 9:33 am

Open new form to get date

Post by Chris.Ediger »

I need to get date info when a certain item is selected from a combo box. Is there a way to spawn a new form that has the DateTimePicker control on it then take the chosen date and use it in the original form?

User avatar
Site Admin
Posts: 478
Joined: Thu Jun 01, 2017 7:20 am

Re: Open new form to get date

Post by brittneyr »

[Topic moved by moderator to PowerShell GUIs forum]
Brittney Ryn
SAPIEN Technologies, Inc.

Posts: 14445
Joined: Tue May 22, 2007 9:57 am

Re: Open new form to get date

Post by jvierra »

Create a multi-form project and call a child form when the item is selected. It works like any other child form in a multi form project.