Message 1 of 9

Not applicable
09-08-2020
03:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello team,
I'm receiving this exception after putting a PreviewController into two different hosts in winforms:
Below is the example code:
elementHost1.Child = new PreviewControl(doc1, viewId);
elementHost2.Child = new PreviewControl(doc2, viewId);
I also tried this and it failed:
PreviewControl control = new PreviewControl(doc, viewId);
elementHost1.Child = control;
elementHost2.Child = control;
However, if I only have one host active, it works.
Any suggestions on how to solve this? Thanks!
Solved! Go to Solution.