Can't figure out how to remove the Close Programs button

I can’t seem to figure out how to remove the Close Programs button.

Tried removing “If ($showCloseApps) { $panelButtons.Controls.Add($buttonCloseApps) }” from AppDeployToolkitMain.ps1

Adding “$closeProgram.Visible = $false” to the AppDeployToolkitMain.ps1

Nothing works, please advise. Thanks

With so little information given, I can only guess you are talking about this close programs button: Modifying Botton Layout + Size - #3 by OwlTecAB

I’m trying to remove the Close Programs button.
image

well to start, there is no declaration of $closeProgram so that your problem right there.
You also do not mention where you added $closeProgram.Visible = $false in the AppDeployToolkitMain.ps1

I’m guessing you should add $buttonCloseApps.Visible = $false

to this section:

		## Button Close For Me
		$buttonCloseApps.DataBindings.DefaultDataSourceUpdateMode = 0
		$buttonCloseApps.Location = New-Object -TypeName 'System.Drawing.Point' -ArgumentList 14,4
		$buttonCloseApps.Name = 'buttonCloseApps'
		$buttonCloseApps.Size = $buttonSize
		$buttonCloseApps.MinimumSize = $buttonSize
		$buttonCloseApps.MaximumSize = $buttonSize
		$buttonCloseApps.TabIndex = 1
		$buttonCloseApps.Text = $configClosePromptButtonClose
		$buttonCloseApps.DialogResult = 'Yes'
		$buttonCloseApps.AutoSize = $true
		$buttonCloseApps.Margin = $paddingNone
		$buttonCloseApps.Padding = $paddingNone
		$buttonCloseApps.UseVisualStyleBackColor = $true
		$buttonCloseApps.add_Click($buttonCloseApps_OnClick)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.