public customRichToolTip(CustomCompletionBase customBase) { this.cust = customBase; // panel toolTip = new System.Windows.Forms.Panel(); toolTip.Location = new System.Drawing.Point(0,0); toolTip.BackColor = Color.LightGoldenrodYellow; toolTip.BorderStyle = BorderStyle.FixedSingle; toolTip.Visible = false; cust.formDisplay.Controls.Add(toolTip); // text toolTipRTB = new System.Windows.Forms.RichTextBox(); toolTipRTB.Location = new System.Drawing.Point(2,1); toolTipRTB.BackColor = Color.LightGoldenrodYellow; toolTipRTB.BorderStyle = BorderStyle.None; toolTipRTB.ScrollBars = RichTextBoxScrollBars.None; toolTipRTB.ReadOnly = true; toolTipRTB.WordWrap = false; toolTipRTB.Visible = true; toolTipRTB.Text = ""; toolTip.Controls.Add(toolTipRTB); }
public virtual void Dispose() { toolTip.Dispose(); toolTipRTB.Dispose(); cust = null; }