【发布时间】:2017-07-21 05:48:10
【问题描述】:
当我按下任何按钮时,我的 C# 应用程序中随机出现 System.Windows.Forms.Control.get_Font()exception。我的 Windows CE 设备应用程序支持 .net 3.5 compact framework(windows 6 OS)
我已经使用第三方(BeeMobile Toolkit)进行自定义控制
异常如下
at Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)
at System.Windows.Forms.Control.get_Font()
at BeeMobile.TransparentControls.TButtonBase.get_Font()
at BeeMobile.TransparentControls.TButtonBase.DrawText(Graphics gr)
at BeeMobile.TransparentControls.TVistaButton.RenderButtonBitmap(Bitmap& renderBitmap, InkColor buttonBackground, Color borderColor)
at BeeMobile.TransparentControls.TVistaButton.get_CurrentImage()
at BeeMobile.TransparentControls.TButtonBase.Draw(Graphics gxBack)
at BeeMobile.Common.DoubleBufferingControl.#=qAKWNr500l_h4qDhHRih7lg==()
at BeeMobile.Common.DoubleBufferingControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.ContainerControl.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
at Microsoft.AGL.Forms.WL.Update(IntPtr hwnThis)
at System.Windows.Forms.Control.Update()
at System.Windows.Forms.Control.Refresh()
at BeeMobile.TransparentControls.TButtonBase.Refresh(Boolean aClearBackBuffer)
at BeeMobile.TransparentControls.TVistaButton.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.ContainerControl.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
at System.Windows.Forms.Application.Run(Form fm)
at BB2000.Program.Main()
有人遇到过同样的问题吗? 请帮我解决这个问题
【问题讨论】:
-
发布您的代码...
-
@Benny Machney:感谢支持..请从以下 URL 获取代码:drive.google.com/file/d/0B0qMt3HfXgJPVEZycDdEaU1PV1k/view
-
@– Benny Mackney: 有什么解决办法吗?
-
这里和您的其他问题可能需要联系 BeeMobile 以了解那里的自定义控制。
标签: c# compact-framework windows-ce