用vb编写wpf窗口程序,为什么运行的时候老师弹出这个异常窗口啊
发布时间:2011-06-23 16:02:00 文章来源:www.iduyao.cn 采编人员:星星草
用vb编写wpf窗口程序,为什么运行的时候老师弹出这个错误窗口啊?
程序编写完后,老师弹出一个感叹号窗口,信息如下:
未处理的“System.IO.IOException”类型的异常出现在 PresentationFramework.dll 中。
其他信息: 找不到资源“window1.xaml”。
代码我是照着书上敲的。连续几个小题目都是这个样子, 把我郁闷惨了,有谁知道如何解决吗?小弟菜鸟,才入门,不知道怎么办,急死我了。谢谢了。
另外我弄不上来截图,只有把代码拷贝上来了:
//TextEditor.xaml
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Text Editor" Height="460" Width="600">
<Grid>
<ToolBarPanel Height="26" Name="ToolBarPanel1" VerticalAlignment="Top">
<ToolBar Height="26" Name="ToolBar1" Width="575">
<Button Name="tbrClear" ToolTip="Clear">
<Image Source="file:///E:/Program Files/Microsoft Visual Studio 9.0/Common7/VS2008ImageLibrary/2052/VS2008ImageLibrary/VS2008ImageLibrary/Actions/32bitcolor bitmaps/16x16/NewDocumentHS.BMP"></Image>
</Button>
<Separator />
<Button Name="tbrRed" ToolTip="Red">
<Image Source="file:///E:/Program Files/Microsoft Visual Studio 9.0/Common7/VS2008ImageLibrary/2052/VS2008ImageLibrary/VS2008ImageLibrary/Actions/32bitcolor bitmaps/16x16/Color_fontHS.bmp"></Image>
</Button>
<Button Name="tbrBlue" ToolTip="Blue">
<Image Source="file:///E:/Program Files/Microsoft Visual Studio 9.0/Common7/VS2008ImageLibrary/2052/VS2008ImageLibrary/VS2008ImageLibrary/Actions/32bitcolor bitmaps/16x16/Color_lineHS.bmp"></Image>
</Button>
<Separator/>
<Button Name="tbrUpperCase" ToolTip="Upper Case">
<Image Source="file:///E:/Program Files/Microsoft Visual Studio 9.0/Common7/VS2008ImageLibrary/2052/VS2008ImageLibrary/VS2008ImageLibrary/Actions/32bitcolor bitmaps/16x16/FillUpHS.BMP"></Image>
</Button>
<Button Name="tbrLowerCase" ToolTip="Lower Case">
<Image Source="file:///E:/Program Files/Microsoft Visual Studio 9.0/Common7/VS2008ImageLibrary/2052/VS2008ImageLibrary/VS2008ImageLibrary/Actions/32bitcolor bitmaps/16x16/FillDownHS.BMP"></Image>
</Button>
<Separator/>
<Button Name="tbrHelpAbout" ToolTip="About">
<Image Source="file:///E:/Program Files/Microsoft Visual Studio 9.0/Common7/VS2008ImageLibrary/2052/VS2008ImageLibrary/VS2008ImageLibrary/Annotations&Buttons/bmp_format/Help.BMP"></Image>
</Button>
</ToolBar>
<ToolBarTray Height="26" Name="ToolBarTray1" Width="200" />
</ToolBarPanel>
<StatusBar Height="23" Name="StatusBar1" VerticalAlignment="Bottom" Margin="0,0,1.5,0">
<StatusBarItem Name="sbiStatus">Ready</StatusBarItem>
</StatusBar>
<TextBox Margin="0,26,0,22" Name="txtEdit" VerticalScrollBarVisibility="Visible" AcceptsReturn="True" TextWrapping="Wrap" />
</Grid>
</Window>
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
关于VB.net中的验证控件
小弟正在开发一个C/S结构程序,有几个界面有较多的textbox,是关于用户数据输入的,现在想做验证,听说有验证控...
-
多表查询问题
我有三个表,一个表为基本表,一个是代码表,一个是出差表
表一 编号,姓名 ,职别
001 李三 101
...
-
DATAGRIDVIEW无法删除未提交的新行?
再DATAGRIDVIEW录入时,想删除最后自动新增的一行,提示无法删除未提交的新行
Private Sub Dat...
-
迷茫了几天,求各位高手指教一下!下面是我的代码!
<!--#include file="webconfig.asp"-->
<%
Dim SortID
SortID=Trim(FLib.SafeSql(R...
-
vb.net 断开和连接网络连接 修改代码
在vb.net中实现断开和连接网络连接的代码,我在网上找了一段代码
Option Explicit On
'首...
-
DataGridView直接导出EXCEL
如何直接读取DataGridView中的数据,并导出成Excel可以直接读取的文件
记住,我不要通过DataTable。
希...
-
求教:如何在vb.net下做一些好看的界面,整一些好看的效果,改变控件,让控件变得好看点?
有没有点例子?有没有点直接可以做控件的软件?
---...
-
在VB中,对SQL数据库进行增删改语句怎么写呢?
小弟做课程设计,遇到了一点小麻烦,卡在了这里,不知道在VB中怎么写对SQL数据库的增删改...
-
文本框中的数字精确到小数点后两位
请问如何让文本框输入数字后精确到小数点后两位,如:当输入112时,显示为112.00
------解决方案--...
-
VB.NET2008如何利用SendMessage修改按钮的Text?
为了测试 Windows API ,试图点Button用SendMessage修改该按钮的Text,竟然没成功,请教...