c# - visual studio copy selected (in designer)control name to paste into text editor -
is there way quick copy selected control name paste text editor? have lot of control have set class property to, have select each 1 click on properties, select name , ctrl+c. there no way select control on designer ctrl+c+someotherkey end voila can paste text editor ? (or maybe there way quick copy of name of selected contols :) ?
i use visual studio proffesional 2012 (going change 2015 in near future).
what create own custom extention. example want buttons green , "zelda". create following class.
public greenzeldabutton : button { public greenzeldabutton() { backcolor = color.green; text = "zelda"; } }
then have toolbox, i'm not sure of proper method create new instance in form contructor. so:
public partial class form1 : form { public form1() { initializecomponent(); new greenzeldabutton(); } }
and press f5 debug in order add new control toolbox. can drag , drop new control toolbox designer. when want multiple copies of control specific properties. hope helps ^_^. p.s. can remove "new greenzeldabutton();" thing (or alternative obviously) after control has been added toolbox.
Comments
Post a Comment