Form Design ScriptControlClass
        Posted  
        
            by 
                raghumithra
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by raghumithra
        
        
        
        Published on 2012-04-15T11:17:08Z
        Indexed on 
            2012/04/16
            5:28 UTC
        
        
        Read the original article
        Hit count: 387
        
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(????????????);
© Stack Overflow or respective owner