MF Project
Posted: Wed Apr 19, 2017 12:50 pm
So I have a project
Form # 1 checks a few things, sets some variables
Form #2 prompts the user for stuff and has an Unlock button
This unlock button validates we have access to the drive and shows form #3
This is my code for the unlock button
What I'm having issues with is closing form2 cleanly, any help?
Form # 1 checks a few things, sets some variables
Form #2 prompts the user for stuff and has an Unlock button
This unlock button validates we have access to the drive and shows form #3
This is my code for the unlock button
- $buttonUnlock_Click= {
- #TODO: Place custom script here
- #Manage-bde -unlock c: -recoverypassword $textbox3.text
- if (Test-Path C:\Windows)
- {
- Show-MainForm_psf
- }
- $form2.Close()
- $form2.Visible = $false
- }