0
Answer

Creating controls from reading a text file

Ask a question
grace

grace

17y
1.6k
1
Hello. Is it possible to create controls from a textfile? For example, my text file contains: Panel pNew = new Panel(); pNew.BackColor = System.Drawing.SystemColors.ControlLightLight; pNew.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; pNew.Location = new System.Drawing.Point(3, 5); pNew.Name = "panel1"; pNew.Size = new System.Drawing.Size(368, 408); pNew.AutoScroll = true; How do I create this after openning the text file?