How to set the designer topmost

edited 9:18PM in FastReport .NET
Hello together,

Inside of my application I'm starting the FR-designer by using
  if (_report == null)
            _report = LoadReport();
  _report.Design(true);

The Designers starts >  but not in front:angry:" border="0" alt="mad.gif" /> . How can I set the designer to front/topmost?" alt="topmost?" />[img]style_emoticons/<#EMO_DIR#>/cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" /> Some Idee? Thanks[/img]

Comments

  • edited 9:18PM
    Solution found... >
           protected virtual void OnShowDesigner(Report report, EventBase onReportClosed)
          {
             var form = new Form();
             form.Shown += OnShowDesignerFrom;
             var designer = new DesignerControl();
             designer.Load+=Designer_Load;
             designer.Parent = form;
             designer.Report = report;
             designer.RefreshLayout();
             designer.Dock = DockStyle.Fill;
             form.WindowState = FormWindowState.Maximized;
             form.ShowDialog();
          }
    
          protected virtual void OnShowDesignerFrom(object fObject, EventArgs fArgs)
          {
             if (fObject == null) return;
             if (fObject is Form)
             {
                (fObject as Form).TopMost = true;
                Application.DoEvents();
                (fObject as Form).TopMost = false;
             }
          }
    
          private void Designer_Load(object sender, EventArgs e){ ... }
    

    Looking for the next Problem >

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.