Window appWindow


  • ok I have to function:

    Twain = new TWAINComm.Twain( App.Current.MainWindow, feedback, applicationIdentity );

    now, I get an error for app.Current.MainWindow

    I need to pass an Window appWindow and it should be the current on but  it is not working.

    I can using winform.

    how do i fix this ?

    • Dipindahkan oleh CoolDadTx Kamis, 17 Mei 2018 15.39 Winforms related
    • Dipindahkan oleh Stanly Fan Senin, 21 Mei 2018 08.02 3rd Resources
    Rabu, 16 Mei 2018 19.37

Semua Balasan

  • If you had read the article, you'd have seen that the package is designed for use with Windows Presentation Foundation, and would require multiple modifications to work with Windows Forms.  You need to find a different TWAIN package.

    Tim Roberts, Driver MVP Providenza & Boekelheide, Inc.

    Rabu, 16 Mei 2018 21.37
  • oh ok,

    do you know a good one i can use?

    that will work with Forms?

    Kamis, 17 Mei 2018 00.34
  • Hi Btb4198,

    Please try to use the TWAIN CS in GitHub.

    For further help, please post your question in GitHub Issues.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Senin, 21 Mei 2018 01.41