Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Security Exception

<Page x: Class="WpfApplication1.Page1"   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="Page1">     <Grid Height="379" Width="361">     </Grid> </Page> //File:Window.xaml.vb Imports System Imports System.Windows Imports System.Windows.Controls Imports System.Windows.Documents Imports System.IO Namespace WpfApplication1   Public Partial Class Page1     Inherits Page     Public Sub New()       InitializeComponent()       Dim SW As StreamWriter       SW = File.CreateText("c:\s.txt")       SW.WriteLine("A!")       SW.WriteLine("B")       SW.Close()     End Sub   End Class End Namespace