We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,697 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

WPF forms

Hi,

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
        Form.Show()
    End Sub

Unfortunately, I am receiving this error:
SecurityException

Upon checking the Security Tab:
Security

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.

Attachments SecurityException.PNG 17.36KB Security.PNG 36.9KB
1
Contributor
1
Reply
27 Minutes
Discussion Span
4 Months Ago
Last Updated
6
Views
Question
Answered
shermags
Newbie Poster
14 posts since Jan 2013
Reputation Points: 6
Solved Threads: 0
Skill Endorsements: 0

Got it!!!

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

shermags
Newbie Poster
14 posts since Jan 2013
Reputation Points: 6
Solved Threads: 0
Skill Endorsements: 0
Question Self-Answered as of 4 Months Ago

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0560 seconds using 2.64MB