Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF Window to Close a Form?

$
0
0

My application uses both WPF windows and normal form windows, except I want to be able to detect whether or not my form is open or not then close them through my WPF window.

P.S.

Form1.ActiveForm.Close()

Doesn't seem to work, nor does:

Dim a as Form1

a.Close()

Thanks in advance.


Viewing all articles
Browse latest Browse all 18858

Trending Articles