The code where I use the Twain32 class is not in the entry point of the app (where you would normally find the STAThread attribute). I Have create a helper class Scanner that has basically a public Image ScanImages() method that does all the work of creating the Twain32 class instance and setting a bunch of capabilities and handles the actual Xfer of the scanned images, hence me asking if its possible to put the attribute above the ScanImages() method.
↧