Message 1 of 10

Not applicable
09-28-2015
02:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
At work, I am working on 2 screens at the same time.
To radically utilize the screen space, I had intention of creating an independent view which can be previewed on the second screen while the main interface is still able to work normally on the main screen.
I am attempting to implement this intention with the below code fragment. In my code, I invoked the form using form.Show() method (instead of form.ShowDialog()). However, after the form is shown, other views seem to be disabled, I could not do anything with them except zooming.
Anybody with any idea?
My code
ElementId currentViewId = Doc.ActiveView.Id; PreviewControlForm frm = new PreviewControlForm(commandData.Application.Application,currentViewId); PreviewControl vc = frm.elementHost1.Child as PreviewControl; if (vc != null) {vc.Dispose();} frm.elementHost1.Child = new PreviewControl(Doc, currentViewId); frm.Show(); frm.TopMost = true;
Thank you
Nguyen Duy Hoa
Solved! Go to Solution.