1
Answer

How to create custom controls in visual studio 2015

Tchala B

Tchala B

7y
311
1
I found saw some interesting  control in someones code  that is not in  visual studio 2015 designer tool box and am wondering how someone was able to create it.
 Here is how it looks
 
  1. this.control1 = new Mycontrol();   
  2. this.control1.AutoSize = true;  
  3. this.control1.BackColor = Color.White;  
  4. this.control1.BackgroundImage = (Image) Resources.background1;  
  5. this.control1.BackgroundImageLayout = ImageLayout.Stretch;  
  6. this.control1.Location = new Point(-2, 100);  
  7. this.control1.MainMenu = 0;  
  8. this.control1.MainMenuName = (object[]) null;  
  9. this.control1.Margin = new Padding(0);  
  10. this.control1.Name = "control1"
Answers (1)