解决方案 »

  1.   

    .net framework什么版本?试试3.0
      

  2.   

    .net framework 3.5 的版本
      

  3.   

    .net framework什么版本?试试3.03.0 试了还是一样的错误提示
      

  4.   

    我的电脑系统是win7 64位系统。 microsoft visual studio 2008 版本9.0.30729.1SP(C) 2007 Microsoft Corporation    microsoft .net framework 版本 3.5SPI
      

  5.   

    这个错误提示 只在WINCE 系统下才出现,在WCF 桌面工程中并没有出现。
      

  6.   

    基本上全写了。 public override bool PreProcessMessage(ref Message msg)  就是这行提示出错的。
      

  7.   

    .net cf 不支持这个属性,在cf中对消息的支持不是太好,接收消息需要使用以下的方法来按收,定义一个类从messagewindow继承,通过这个类来接收消息,反射给form处理
    public class ScanWindow2350 : MessageWindow
            {
                public event FrontLinkDriver.Interface.ScanEventHandler AppRead = null;
                CBarcode m_barcode = new CBarcode();
                protected override void WndProc(ref Message msg)
                {
                    switch (msg.Msg)
                    {
                        case 2350.WM_BARCODE_COMPLETE:
                            {
                                char[] cChar1 = new char[1024];
                                UInt32 nResult = Partner2350.BCRReadString(cChar1, 1024);
                                string barcode = new string(cChar1);
                                if (AppRead != null && barcode != null)
                                {
                                    if (barcode.Length > 0)
                                    {
                                        m_barcode.barcode = barcode;
                                        m_barcode.type = SCANNERBARCODETYPE.NONE;
                                        AppRead(m_barcode);
                                    }
                                }
                            }
                            break;                    default:
                            break;                }                base.WndProc(ref msg);
                }
            }
      

  8.   

    好的,谢谢各位。
    我最后是在textbox 的添加downkey 消息解决了。谢谢。
      

  9.   

    liangzhonglin 给了最高分,但讲的方法我没有验证。我想应该是可以的。谢谢liangzhonglin