protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing && editBox != null) { editBox.Dispose(); editBox = null; } }
public ChartTipControl() { webBrowser = new HtmlEditBox(); labLink = new LinkLabel(); this.SuspendLayout(); webBrowser.ReadOnly = true; webBrowser.VisibleChanged += webBrowser_VisibleChanged; labLink.VisibleChanged += labLink_VisibleChanged; labLink.AutoSize = true; Controls.Add(webBrowser); Controls.Add(labLink); this.ResumeLayout(); }
void InitializeComponent() { panel1 = new Panel(); editBox = new HtmlEditBox(); codeBox = new HtmlCodeEditor(); toolStrip1 = new HtmlEditToolStrip(this); panel1.SuspendLayout(); SuspendLayout(); // editBox.Dock = DockStyle.Fill; editBox.TabIndex = 0; editBox.ReadOnly = ReadOnly; editBox.TextChanged += editBox_TextChanged; // codeBox.Dock = DockStyle.Fill; codeBox.ReadOnly = ReadOnly; codeBox.TextChanged += codeBox_TextChanged; // toolStrip1.TabIndex = 1; //toolStrip1.LayoutStyle = ToolStripLayoutStyle.Flow; toolStrip1.Fonts = DefaultFonts; toolStrip1.Dock = DockStyle.Top; toolStrip1.RenderMode = ToolStripRenderMode.System; // panel1 = new Panel(); panel1.Dock = DockStyle.Fill; panel1.TabIndex = 0; // Controls.AddRange(new Control[] { panel1, toolStrip1 }); OnViewTypeChanged(); panel1.ResumeLayout(); ResumeLayout(); }
public HtmlEditToolStrip(HtmlEditor editor) : this() { Editor = editor; htmlBox = editor.EditBox; }