code_junkie

Visual Studio - new “default” property values for inherited controls

Nov 10th, 2011
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. class NewCombo : System.Windows.Forms.ComboBox
  2. {
  3. public NewCombo() { DropDownItems = 50; }
  4. }
  5.  
  6. [DefaultValue(typeof(BorderStyle), "None")]
  7. public override BorderStyle BorderStyle { get; set; }
Add Comment
Please, Sign In to add comment