I am new with the WPF Browser Application in VB.Net. I would like to know if how can I execute a windows form or a page.

I had tried to this code:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click
        Dim Form As New Window1
    End Sub

Unfortunately, I am receiving this error:

Upon checking the Security Tab:

May I know the reason why I am getting this type for error.

By the way, I am using Visual Studio Express 2008.

Hoping someone can help me on this.

Thank you in advance.

Got it!!!

All you have to do in Security Tab is select the "This is a full trust application"...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.