public void button() { frmButtonProperties p = new frmButtonProperties(); if (p.ShowDialog() == System.Windows.Forms.DialogResult.OK) { string button = "<input id=\"Button2\" type=\"button\" value=\"" + p.SelectedCaption + "\" style=\"background-color: " + p.SelectedBackColor + "; height: " + p.SelectedHeight + "; width: " + p.SelectedWidth + "; color: " + p.SelectedForeColor + "\" />"; Button btn = new Button(); btn.ContextMenuStrip = ButtonContextMenu; webBrowser1.Controls.Add(btn); sb.Append(button); webBrowser1.DocumentText = sb.ToString(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)