Form Design ScriptControlClass
- by raghumithra
I am working on a form designer. We have two parts: first is designing form by placing controls, and second is writing VB code in rich text editor. How do i integrate design and code (events of the controls) in runtime? I am using ScriptControlClass
Form4 f4 = new Form4();
f4.Name = "dgfdfg";
f4.Text = "Raghudfgmithra";
Button btn = new Button();
btn.Text = "HI";
btn.Left = 25;
btn.Top = 50;
btn.Name = "btnSubmit";
f4.Controls.Add(btn);
script.AddObject("form", f4, true);
script.AddCode("???????????);
script.ExecuteStatement(????????????);