Amy

Amy

  • NA
  • 1
  • 1.9k

how to execute windows form from class file of dll project?

Jan 20 2014 8:02 PM

I have created dll project which I am running through PrinterplusPlus (Virtual printer). In my dll I have one process.cs and form1.cs (which is windows form). As you can see in the code process. Cs is calling Form1. Cs, there are quite a few operations done on Form1 and now I want to retrieve data from the database and show it on Form2. On execution Through virtual printer function work fine, If data is duplicate windows A form appears, but everytime it goes in Not responding mode.

I tried to divide it in the foreground and background thread but still Same result, then I took out method other than display form2 but still on Display windows form goes into Not responding state.

I hope this makes my question clear.

Thank you guys, I appreciate your time and help.

process.cs



Answers (1)