none
Window appWindow RRS feed

  • Question

  • 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 ?

    • Moved by CoolDadTx Thursday, May 17, 2018 3:39 PM Winforms related
    • Moved by Stanly Fan Monday, May 21, 2018 8:02 AM 3rd Resources
    Wednesday, May 16, 2018 7:37 PM

All replies

  • 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.

    Wednesday, May 16, 2018 9:37 PM
  • oh ok,

    do you know a good one i can use?

    that will work with Forms?


    Thursday, May 17, 2018 12:34 AM
  • Hi Btb4198,

    Please try to use the TWAIN CS in GitHub.

    https://github.com/twain/twain-cs

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

    https://github.com/twain/twain-cs/issues

    Best Regards,

    Wendy


    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 MSDNFSF@microsoft.com.

    Monday, May 21, 2018 1:41 AM