作者hondaygrace (发慌)
看板Visual_Basic
标题[VBA ] 2010vb执行问题
时间Fri Jan 28 12:01:56 2011
请问一下 各位大大
我最近在学vb程式
所以去买了一本书来自学
里面的光碟是用2010 Visual Basic Express 试用版的
可以当我按f5开始执行侦错时
却一直出现下面的问题
InvalidOperationException 未处理
建立表单时发生错误。如需详细资讯,
请参阅 Exception.InnerException。
错误是: 外部元件传回例外状况
System.InvalidOperationException 未处理
Message=建立表单时发生错误。如需详细资讯,请参阅 Exception.InnerException。
错误是: 外部元件传回例外状况。
Source=MyFirst
StackTrace:
於 MyFirst.My.MyProject.MyForms.Create__Instance__[T](T Instance) 於
17d14f5c-a337-4978-8281-53493378c1071.vb: 行 190
於 MyFirst.My.MyProject.MyForms.get_Form1()
於 MyFirst.My.MyApplication.OnCreateMainForm() 於
C:\vb\ch01\MyFirst\My Project\Application.Designer.vb: 行 35
於
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
於
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
於
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[]
commandLine)
於 MyFirst.My.MyApplication.Main(String[] Args) 於
17d14f5c-a337-4978-8281-53493378c1071.vb: 行 81
於 System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,
String[] args)
於 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
於 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
於 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
於 System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
ignoreSyncCtx)
於 System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
於 System.Threading.ThreadHelper.ThreadStart()
InnerException: System.Runtime.InteropServices.SEHException
Message=外部元件传回例外状况。
Source=System.Drawing
ErrorCode=-2147467259
StackTrace:
於
System.Drawing.SafeNativeMethods.Gdip.GdipCreateFontFamilyFromName(String
name, HandleRef fontCollection, IntPtr& FontFamily)
於 System.Drawing.FontFamily.CreateFontFamily(String name,
FontCollection fontCollection)
於 System.Drawing.FontFamily..ctor(String name, Boolean
createDefaultOnFail)
於 System.Drawing.Font.Initialize(String familyName, Single
emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean
gdiVerticalFont)
於 System.Drawing.Font..ctor(String familyName, Single emSize,
FontStyle style, GraphicsUnit unit, Byte gdiCharSet)
於 MyFirst.Form1.InitializeComponent() 於
C:\vb\ch01\MyFirst\Form1.Designer.vb: 行 41
於 MyFirst.Form1..ctor()
InnerException:
出现上面的错误讯息!!
但是在google搜寻相关错误
都说这是老掉牙的问题
但是我还是找不到解决方法
不知道有没有大大可以告知小弟一下解决方法
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.38.18.242
※ 编辑: hondaygrace 来自: 114.38.18.242 (01/28 12:14)
1F:推 horngsh:把你的码贴上来,我们才能帮你找。 01/29 13:13
2F:→ hondaygrace:什麽码呢?? 我不是已经贴了吗? 02/03 21:40
3F:→ Iories:我在6703篇有问过了,一模一样的问题… 02/09 09:15
4F:→ MOONRAKER:码 == code == 程式 02/14 09:29